diff options
author | David Lehman <dlehman@redhat.com> | 2009-07-17 14:28:16 -0500 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2009-07-21 17:36:12 -0500 |
commit | 5783ef066ab10b0f1573f1670da5f343cb680e3d (patch) | |
tree | 8389b7a9027e96141e85f0932e02e098a5aae51b | |
parent | c37f1fb314ea7ad7fb4d832fe2764c6e58196a01 (diff) | |
download | anaconda-5783ef066ab10b0f1573f1670da5f343cb680e3d.tar.gz anaconda-5783ef066ab10b0f1573f1670da5f343cb680e3d.tar.xz anaconda-5783ef066ab10b0f1573f1670da5f343cb680e3d.zip |
Make sure we have a device before check if it's protected. (#510033)
-rw-r--r-- | storage/devicetree.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/devicetree.py b/storage/devicetree.py index 5d85a6247..71d7a4830 100644 --- a/storage/devicetree.py +++ b/storage/devicetree.py @@ -1235,7 +1235,7 @@ class DeviceTree(object): # If this device is protected, mark it as such now. Once the tree # has been populated, devices' protected attribute is how we will # identify protected devices. - if device.name in self.protectedDevNames: + if device and device.name in self.protectedDevNames: device.protected = True # now handle the device's formatting |