summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Granados Moreno <jgranado@redhat.com>2009-03-25 14:37:29 +0100
committerJoel Granados Moreno <jgranado@redhat.com>2009-03-25 16:20:58 +0100
commitf23357309e0d2e6a0f055b0ebdc6c9dd8036455b (patch)
tree2c98891dc7f0295bd59fa43a07630105688d3cc9
parentf7099850b26140c568f72fed9982f3985b84164e (diff)
downloadanaconda-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.py8
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)