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

[PATCH] Fix dasd device type test in platform.py (#796791)



---
 pyanaconda/platform.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/platform.py b/pyanaconda/platform.py
index 72070d0..f06083b 100644
--- a/pyanaconda/platform.py
+++ b/pyanaconda/platform.py
@@ -300,7 +300,7 @@ class S390(Platform):
 
     def requiredDiskLabelType(self, device_type):
         """The required disklabel type for the specified device type."""
-        if device_type == "dasd":
+        if device_type == parted.DEVICE_DASD:
             return "dasd"
 
         return super(S390, self).requiredDiskLabelType(device_type)
-- 
1.7.1


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