[rhel6-branch 1/1] Fixed IndexError in cleardisks_gui.py (#1224413)
by dashea
From: Jan Pokorny <japokorn(a)redhat.com>
Anaconda no longer raises IndexError in when user clicks 'No, keep my data' while
using uninitialized multipath devices.
Resolves: rhbz#1224413
---
storage/__init__.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/storage/__init__.py b/storage/__init__.py
index aeb162d..d2c75bf 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -108,7 +108,8 @@ def storageInitialize(anaconda, examine_all=True):
else:
storage.reset(examine_all=examine_all)
- if not storage.disks:
+ # Check if not-hidden disks exist; also triggers when no disks are found
+ if all(x.format.hidden for x in storage.disks):
custom_buttons=[_("_Try again"), _("_Exit installer")]
if anaconda.dispatch and anaconda.dispatch.canGoBack():
custom_buttons = [_("_Back"), _("_Exit installer")]
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/00af92829220265d6b07306ce9...
8 years, 5 months