diff options
author | Hans de Goede <hdegoede@redhat.com> | 2009-07-09 09:08:27 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2009-07-09 09:08:27 +0200 |
commit | 3917cabf1823d37e6a11c7ccfb4abae7c8fdc30f (patch) | |
tree | 8d0f8f9b3f2591f28130d0a3f3670ed7701abcb5 | |
parent | 0780f3e25fb6c575510ea1f19948dba3b05c47c7 (diff) | |
download | anaconda-3917cabf1823d37e6a11c7ccfb4abae7c8fdc30f.tar.gz anaconda-3917cabf1823d37e6a11c7ccfb4abae7c8fdc30f.tar.xz anaconda-3917cabf1823d37e6a11c7ccfb4abae7c8fdc30f.zip |
When all udev_is-foo() checks fail return instead of backtracing
While testing isw bios raid using mdraid, I hit a backtrace caused
by all udev_is-foo() checks failing. This patch logs an error and
ignores the device instead of backtracing. I believe this may work
around quite a few "'NoneType' object has no attribute Name" bugs we
have open at the moment.
-rw-r--r-- | storage/devicetree.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/devicetree.py b/storage/devicetree.py index 08846f337..a5fd63f1f 100644 --- a/storage/devicetree.py +++ b/storage/devicetree.py @@ -1279,6 +1279,9 @@ class DeviceTree(object): log.debug("%s is a partition" % name) if device is None: device = self.addUdevPartitionDevice(info) + else: + log.error("Unknown block device type for: %s" % name) + return # If this device is protected, mark it as such now. Once the tree # has been populated, devices' protected attribute is how we will |