[rhinstaller/blivet/pulls/111 master] Store vendor/model information for DiskDevice instances.
dwlehman
installerbot-noreply at redhat.com
Mon May 11 15:08:52 UTC 2015
> @@ -476,12 +476,10 @@ def addUdevDiskDevice(self, info):
> serial = udev.device_get_serial(info)
> bus = udev.device_get_bus(info)
>
> - # udev doesn't always provide a vendor.
> - vendor = udev.device_get_vendor(info)
> - if not vendor:
> - vendor = ""
> + vendor = util.get_sysfs_attr(sysfs_path, "device/vendor")
> + model = util.get_sysfs_attr(sysfs_path, "device/model")
I did so in StorageDevice.__init__ instead so it would be covered for other callers as well.
--
To view this pull request on github, visit https://github.com/rhinstaller/blivet/pull/111#discussion_r30046806
More information about the anaconda-patches
mailing list