[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 4/9] Don't clobber exclusiveDisks unless there are disk images.



Related: rhbz#681608
---
 pyanaconda/storage/devicetree.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index 660d4a5..216c607 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -172,7 +172,11 @@ class DeviceTree(object):
         self.iscsi = iscsi
         self.dasd = dasd
 
-        self.setDiskImages(getattr(conf, "diskImages", {}))
+        self.diskImages = {}
+        images = getattr(conf, "diskImages", {})
+        if images:
+            # this will overwrite self.exclusiveDisks
+            self.setDiskImages(images)
 
         # protected device specs as provided by the user
         self.protectedDevSpecs = getattr(conf, "protectedDevSpecs", [])
-- 
1.7.3.5


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]