Skip to content

Commit

Permalink
Fixed IndexError in cleardisks_gui.py (#1224413)
Browse files Browse the repository at this point in the history
Anaconda no longer raises IndexError in when user clicks 'No, keep my data' while
using uninitialized multipath devices.

Resolves: rhbz#1224413
  • Loading branch information
japokorn committed Jan 5, 2016
1 parent 4cd936e commit 143b60d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion storage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit 143b60d

Please sign in to comment.