[master 5/10] Require a non-empty member set for md disks.
dwlehman
installerbot-noreply at redhat.com
Mon Jul 20 21:39:26 UTC 2015
From: David Lehman <dlehman at redhat.com>
---
blivet/devices/md.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/blivet/devices/md.py b/blivet/devices/md.py
index e4156f8..b204e43 100644
--- a/blivet/devices/md.py
+++ b/blivet/devices/md.py
@@ -556,11 +556,11 @@ def model(self):
@property
def partitionable(self):
- return self.exists and all(p.partitionable for p in self.parents)
+ return self.exists and self.parents and all(p.partitionable for p in self.members)
@property
def isDisk(self):
- return self.exists and all(p.isDisk for p in self.parents)
+ return self.exists and self.parents and all(p.isDisk for p in self.members)
def dracutSetupArgs(self):
return set(["rd.md.uuid=%s" % self.mdadmFormatUUID])
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/0f90d4cae27a61a1acbe214cb8ed48cc9e331848
More information about the anaconda-patches
mailing list