summaryrefslogtreecommitdiffstats
path: root/storage/formats/disklabel.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2009-11-12 15:14:46 -0600
committerDavid Lehman <dlehman@redhat.com>2009-11-12 15:37:42 -0600
commit6c7464c0974f690a3fe511ad9cecce569a4de61d (patch)
treeaf70cb7753ce3ba20f41d6568bea31504c70630e /storage/formats/disklabel.py
parent2414b286773fe3f1f2411caeff6c9b3b843ef9c3 (diff)
downloadanaconda-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.py3
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. """