[PATCH] Only check for DEVICE_DASD in S390.diskLabelType, not for all platforms.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 platform.py |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/platform.py b/platform.py
index 62260da..2a4b9ea 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"]
 
-- 
1.6.5.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux