summaryrefslogtreecommitdiffstats
path: root/platform.py
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2009-10-29 15:46:31 +0100
committerHans de Goede <hdegoede@redhat.com>2009-10-29 16:10:56 +0100
commite071aa91bee3fb9ecca9ee4ab86034447611bcdd (patch)
tree9ebbcef281d5fd56eaea48d391b1134c3a5cbf86 /platform.py
parent8a99c19e8f2c52dcc69e35c4917ce533e0a9f926 (diff)
downloadanaconda-e071aa91bee3fb9ecca9ee4ab86034447611bcdd.tar.gz
anaconda-e071aa91bee3fb9ecca9ee4ab86034447611bcdd.tar.xz
anaconda-e071aa91bee3fb9ecca9ee4ab86034447611bcdd.zip
TypeError: '_ped.DiskType' object is not callable (#531730)
platform.X86.__init__ did: self.diskLabelType = foo instead of self._diskLabelType = foo. So it was overriding the method from the base class.
Diffstat (limited to 'platform.py')
-rw-r--r--platform.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/platform.py b/platform.py
index c0cc60295..ca4bf9e70 100644
--- a/platform.py
+++ b/platform.py
@@ -257,7 +257,7 @@ class Alpha(Platform):
disk = req.disk.format.partedDisk
# Check that we're a BSD disk label
- if not disk.type == self.diskLabelType.name:
+ if not disk.type == self._diskLabelType.name:
errors.append(_("%s must have a bsd disk label.") % req.disk.name)
# The first free space should start at the beginning of the drive and
@@ -400,7 +400,7 @@ class NewWorldPPC(PPC):
disk = req.disk.format.partedDisk
# Check that we're a Mac disk label
- if not disk.type == self.diskLabelType.name:
+ if not disk.type == self._diskLabelType.name:
errors.append(_("%s must have a mac disk label.") % req.disk.name)
# All of the above just checks the appleboot partitions. We still
@@ -460,9 +460,9 @@ class X86(EFI):
EFI.__init__(self, anaconda)
if self.isEfi:
- self.diskLabelType = parted.diskType["gpt"]
+ self._diskLabelType = parted.diskType["gpt"]
else:
- self.diskLabelType = parted.diskType["msdos"]
+ self._diskLabelType = parted.diskType["msdos"]
def bootDevice(self):
if self.isEfi: