diff options
author | David Lehman <dlehman@redhat.com> | 2009-11-12 15:14:46 -0600 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2009-11-12 15:37:42 -0600 |
commit | 6c7464c0974f690a3fe511ad9cecce569a4de61d (patch) | |
tree | af70cb7753ce3ba20f41d6568bea31504c70630e /storage/formats/disklabel.py | |
parent | 2414b286773fe3f1f2411caeff6c9b3b843ef9c3 (diff) | |
download | anaconda-6c7464c0974f690a3fe511ad9cecce569a4de61d.tar.gz anaconda-6c7464c0974f690a3fe511ad9cecce569a4de61d.tar.xz anaconda-6c7464c0974f690a3fe511ad9cecce569a4de61d.zip |
Fix DiskLabel.status so it returns True, not self.partedDisk, when active.
Diffstat (limited to 'storage/formats/disklabel.py')
-rw-r--r-- | storage/formats/disklabel.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/formats/disklabel.py b/storage/formats/disklabel.py index 8f003fc17..5b156f642 100644 --- a/storage/formats/disklabel.py +++ b/storage/formats/disklabel.py @@ -147,7 +147,8 @@ class DiskLabel(DeviceFormat): """ Device status. """ return (self.exists and self.device and os.path.exists(self.device) and - self.partedDevice and self.partedDisk) + self.partedDevice is not None and + self.partedDisk is not None) def setup(self, *args, **kwargs): """ Open, or set up, a device. """ |