summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2010-02-16 13:37:13 -0600
committerDavid Lehman <dlehman@redhat.com>2010-02-16 13:37:13 -0600
commitab9e0abcc89108068d3ef2c547e0f4661f18ee51 (patch)
tree813e29f5af3fcae6d35d84fc65252c6dd07bece0
parentad5b2571c63f0c66219146e4740d5f200b048bb2 (diff)
downloadanaconda-ab9e0abcc89108068d3ef2c547e0f4661f18ee51.tar.gz
anaconda-ab9e0abcc89108068d3ef2c547e0f4661f18ee51.tar.xz
anaconda-ab9e0abcc89108068d3ef2c547e0f4661f18ee51.zip
PartitionDevice._setDisk: self.disk can be None. (#565930)
-rw-r--r--storage/devices.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/devices.py b/storage/devices.py
index 22956285c..69aa8bf76 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -1407,7 +1407,8 @@ class PartitionDevice(StorageDevice):
Setting up a disk is not trivial. It has the potential to change
the underlying object. If necessary we must also change this object.
"""
- log_method_call(self, self.name, old=self.disk.name, new=disk.name)
+ log_method_call(self, self.name, old=getattr(self.disk, "name", None),
+ new=getattr(disk, "name", None))
if self.disk:
self.disk.removeChild()