[PATCH 02/19] Use StorageError insead of enumerating all the different storage errors.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



devicetree.teardownAll() often causes storage errors which all get
ignored, but we've been enumerating them individually.  use their
superclass instead.
---
 storage/devicetree.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 17700f6..99af7c6 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1949,7 +1949,7 @@ class DeviceTree(object):
         for device in self.leaves:
             try:
                 device.teardown(recursive=True)
-            except (DeviceError, DeviceFormatError, LVMError, MDRaidError) as e:
+            except StorageError as e:
                 log.info("teardown of %s failed: %s" % (device.name, e))
 
     def setupAll(self):
-- 
1.6.5.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux