diff options
author | Chris Lumens <clumens@redhat.com> | 2005-05-31 20:51:07 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2005-05-31 20:51:07 +0000 |
commit | 418be937353c1c86909801837e51c769c424141b (patch) | |
tree | b1398dd84d67882838d6fba86c3ae487923c2aed /fsset.py | |
parent | a2d71f54a98dd4348203c5666f065ad9ed748898 (diff) | |
download | anaconda-418be937353c1c86909801837e51c769c424141b.tar.gz anaconda-418be937353c1c86909801837e51c769c424141b.tar.xz anaconda-418be937353c1c86909801837e51c769c424141b.zip |
Revert to super-major behavior for volumes that aren't activated
either (#159079, #159182).
Diffstat (limited to 'fsset.py')
-rw-r--r-- | fsset.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1936,7 +1936,11 @@ class RAIDDevice(Device): levels = ["multipath", "hsm", "translucent", "linear", "raid0", "raid1", "", "", "raid5", "raid5"] - (dev, devices, level, numActive) = raid.lookup_raid_device (self.device) + # If we can't find the device for some reason, revert to old behavior. + try: + (dev, devices, level, numActive) = raid.lookup_raid_device (self.device) + except KeyError: + devices = [] # First loop over all the devices that make up the RAID trying to read # the superblock off each. If we read a superblock, return a line that |