Re: [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]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 15 Jan 2010, Peter Jones wrote:

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):


Ack.

- -- David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)

iEYEARECAAYFAktVHZAACgkQ5hsjjIy1VklRnQCg5b69I3NBL2jbuSwmSETYK+mw
id8AoPYXm7g9nlyxc7Vf2DYa5M71bMpv
=yGIH
-----END PGP SIGNATURE-----

_______________________________________________
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