[PATCH 1/2] Parent list length doesn't reflect new member in _addParent.
David Lehman
dlehman at redhat.com
Fri Mar 28 20:24:06 UTC 2014
The new parent doesn't get added until after _addParent returns.
---
blivet/devices.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/devices.py b/blivet/devices.py
index cb19d84..d568d8e 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -2500,7 +2500,7 @@ class LVMVolumeGroupDevice(ContainerDevice):
self.setup()
if (self.exists and member.format.exists and
- len(self.parents) == self.pvCount):
+ len(self.parents) + 1 == self.pvCount):
self._complete = True
def _removeParent(self, member):
--
1.9.0
More information about the anaconda-patches
mailing list