[PATCH 2/3] Don't allow a device to be on the hidden list more than once.

Chris Lumens clumens at redhat.com
Tue May 21 18:54:28 UTC 2013


---
 blivet/devicetree.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index d32f09e..1f1ee4f 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -1686,6 +1686,9 @@ class DeviceTree(object):
                 devicelibs.lvm.lvm_cc_addFilterRejectRegexp(pv.name)
 
     def hide(self, device):
+        if device in self._hidden:
+            return
+
         for d in self.getChildren(device):
             self.hide(d)
 
-- 
1.8.1.2



More information about the anaconda-patches mailing list