[PATCH] "vg" is not valide inside this if.

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

 



Inside this if, "device" is the vg device that we need.
---
 storage/devicetree.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 458e5a8..b9552bd 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)
 
-- 
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