summaryrefslogtreecommitdiffstats
path: root/platform.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-11-23 16:53:54 -0500
committerChris Lumens <clumens@redhat.com>2009-11-24 09:32:17 -0500
commit2fde9d0bf61af2dea407a220074c7e91da1b4f1a (patch)
tree14b9587819011ca1951738419391ef1212464125 /platform.py
parent8c24c48663851eedc2a2328641f9fdea8fcee94a (diff)
downloadanaconda-2fde9d0bf61af2dea407a220074c7e91da1b4f1a.tar.gz
anaconda-2fde9d0bf61af2dea407a220074c7e91da1b4f1a.tar.xz
anaconda-2fde9d0bf61af2dea407a220074c7e91da1b4f1a.zip
Only check for DEVICE_DASD in S390.diskLabelType, not for all platforms.
Diffstat (limited to 'platform.py')
-rw-r--r--platform.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/platform.py b/platform.py
index 62260da23..2a4b9ea49 100644
--- a/platform.py
+++ b/platform.py
@@ -141,9 +141,6 @@ class Platform(object):
def diskLabelType(self, deviceType):
"""Return the disk label type as a parted.DiskType."""
- if deviceType == parted.DEVICE_DASD:
- return parted.diskType["dasd"]
-
return self._diskLabelType
@property
@@ -441,6 +438,13 @@ class S390(Platform):
def __init__(self, anaconda):
Platform.__init__(self, anaconda)
+ def diskLabelType(self, deviceType):
+ """Return the disk label type as a parted.DiskType."""
+ if deviceType == parted.DEVICE_DASD:
+ return parted.diskType["dasd"]
+ else:
+ return Platform.diskLabelType(self, deviceType)
+
class Sparc(Platform):
_diskLabelType = parted.diskType["sun"]