[PATCH] Fix check for fully defined md array when raidlevel is 0. (#491796)

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

 



---
 storage/devices.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 33004dc..826df8c 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -2059,7 +2059,7 @@ class MDRaidArrayDevice(StorageDevice):
     @property
     def mdadmConfEntry(self):
         """ This array's mdadm.conf entry. """
-        if not self.level or self.memberDevices is None or not self.uuid:
+        if self.level is None or self.memberDevices is None or not self.uuid:
             raise DeviceError("array is not fully defined")
 
         fmt = "ARRAY level=%s num-devices=%d UUID=%s"
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux