summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2009-07-17 14:28:16 -0500
committerDavid Lehman <dlehman@redhat.com>2009-07-21 17:36:12 -0500
commit5783ef066ab10b0f1573f1670da5f343cb680e3d (patch)
tree8389b7a9027e96141e85f0932e02e098a5aae51b /storage
parentc37f1fb314ea7ad7fb4d832fe2764c6e58196a01 (diff)
downloadanaconda-5783ef066ab10b0f1573f1670da5f343cb680e3d.tar.gz
anaconda-5783ef066ab10b0f1573f1670da5f343cb680e3d.tar.xz
anaconda-5783ef066ab10b0f1573f1670da5f343cb680e3d.zip
Make sure we have a device before check if it's protected. (#510033)
Diffstat (limited to 'storage')
-rw-r--r--storage/devicetree.py2
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