[PATCH 2/2 master] Don't show multipath members in specialized disks overview (#740105)
Radek Vykydal
rvykydal at redhat.com
Fri Jul 19 13:08:02 UTC 2013
With previous patch, the members shouldn't be returned by
pyanaconda/ui/lib/disks.py:getDisks(), but because they are added to
data.ignoredisk.onlyuse as ancestors in apply of filter spoke, they are still
displayed in the overview. I am not sure if we really need to do the ancestors
adding so not to break something I just filter the onlyuse disks by disks
returned by getDisks() in this patch.
---
pyanaconda/ui/gui/spokes/storage.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
index 999b947..ab50072 100644
--- a/pyanaconda/ui/gui/spokes/storage.py
+++ b/pyanaconda/ui/gui/spokes/storage.py
@@ -558,6 +558,8 @@ class StorageSpoke(NormalSpoke, StorageChecker):
# those selected in the filter UI are displayed. This means refresh
# needs to know to create and destroy overviews as appropriate.
for name in self.data.ignoredisk.onlyuse:
+ if name not in disk_names:
+ continue
obj = self.storage.devicetree.getDeviceByName(name, hidden=True)
if isLocalDisk(obj):
continue
--
1.7.11.7
More information about the anaconda-patches
mailing list