diff options
author | Joel Granados Moreno <jgranado@redhat.com> | 2009-03-25 14:37:29 +0100 |
---|---|---|
committer | Joel Granados Moreno <jgranado@redhat.com> | 2009-03-25 16:20:58 +0100 |
commit | f23357309e0d2e6a0f055b0ebdc6c9dd8036455b (patch) | |
tree | 2c98891dc7f0295bd59fa43a07630105688d3cc9 | |
parent | f7099850b26140c568f72fed9982f3985b84164e (diff) | |
download | anaconda-f23357309e0d2e6a0f055b0ebdc6c9dd8036455b.tar.gz anaconda-f23357309e0d2e6a0f055b0ebdc6c9dd8036455b.tar.xz anaconda-f23357309e0d2e6a0f055b0ebdc6c9dd8036455b.zip |
"vg" is not valide inside this if.
Inside this if, "device" is the vg device that we need.
-rw-r--r-- | storage/devicetree.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/storage/devicetree.py b/storage/devicetree.py index 458e5a8da..b9552bd98 100644 --- a/storage/devicetree.py +++ b/storage/devicetree.py @@ -1410,10 +1410,10 @@ class DeviceTree(object): elif not device.complete: # The user chose not to reinitialize. # hopefully this will ignore the vg components too. - self._removeDevice(vg) - lvm.lvm_cc_addFilterRejectRegexp(vg.name) - lvm.blacklistVG(vg.name) - for parent in vg.parents: + self._removeDevice(device) + lvm.lvm_cc_addFilterRejectRegexp(device.name) + lvm.blacklistVG(device.name) + for parent in device.parents: self._removeDevice(parent, moddisk=False) lvm.lvm_cc_addFilterRejectRegexp(parent.name) |