diff options
author | David Lehman <dlehman@redhat.com> | 2010-02-16 13:37:13 -0600 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2010-02-16 13:37:13 -0600 |
commit | ab9e0abcc89108068d3ef2c547e0f4661f18ee51 (patch) | |
tree | 813e29f5af3fcae6d35d84fc65252c6dd07bece0 | |
parent | ad5b2571c63f0c66219146e4740d5f200b048bb2 (diff) | |
download | anaconda-ab9e0abcc89108068d3ef2c547e0f4661f18ee51.tar.gz anaconda-ab9e0abcc89108068d3ef2c547e0f4661f18ee51.tar.xz anaconda-ab9e0abcc89108068d3ef2c547e0f4661f18ee51.zip |
PartitionDevice._setDisk: self.disk can be None. (#565930)
-rw-r--r-- | storage/devices.py | 3 |
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() |