[PATCH 7/7] MDRaidDevice does not have serial, vendor or bus arguments

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

 



---
 storage/devicetree.py |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index e32fd95..ffc1c90 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1123,7 +1123,7 @@ class DeviceTree(object):
 
         device = None
 
-        kwargs = {}
+        kwargs = { "serial": serial, "vendor": vendor, "bus": bus }
         if udev_device_is_iscsi(info):
             diskType = iScsiDiskDevice
             kwargs["node"] = self.iscsi.getNode(
@@ -1144,9 +1144,11 @@ class DeviceTree(object):
             kwargs["parents"] = [ self.getDeviceByName(parentName) ]
             kwargs["level"]  = udev_device_get_md_level(info)
             kwargs["memberDevices"] = int(udev_device_get_md_devices(info))
-            # This needs bug #523314 fixed
             kwargs["uuid"] = udev_device_get_md_uuid(info)
             kwargs["exists"]  = True
+            del kwargs["serial"]
+            del kwargs["vendor"]
+            del kwargs["bus"]
         elif udev_device_is_dasd(info):
             diskType = DASDDevice
             kwargs["dasd"] = self.dasd
@@ -1168,10 +1170,10 @@ class DeviceTree(object):
             diskType = DiskDevice
             log.debug("%s is a disk" % name)
 
-        device = diskType(name, serial=serial, vendor=vendor,
+        device = diskType(name,
                           major=udev_device_get_major(info),
                           minor=udev_device_get_minor(info),
-                          sysfsPath=sysfs_path, bus=bus, **kwargs)
+                          sysfsPath=sysfs_path, **kwargs)
         self._addDevice(device)
         return device
 
-- 
1.6.5.2

_______________________________________________
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