[PATCH 1/5] Replace our pyudev with the package python-pyudev.

David Lehman dlehman at redhat.com
Fri Aug 1 00:03:11 UTC 2014


On 07/31/2014 06:37 PM, Brian C. Lane wrote:
> On Tue, Jul 29, 2014 at 01:10:58PM -0500, David Lehman wrote:
>> -    if path.startswith("fc-") and "fcoe" in info["sysfs_path"]:
>> -        return info["sysfs_path"].split("/")[4].split(".")[0]
>> +    if path.startswith("fc-") and "fcoe" in sysfs_path:
>> +        return sysfs_path.split("/")[4].split(".")[0]
>>
>>       (sysfs_pci, host) = _detect_broadcom_fcoe(info)
>>       if (sysfs_pci, host) != (None, None):
>> -        net, iface = info['sysfs_path'].split("/")[5:7]
>> +        net, iface = sysfs_path.split("/")[5:7]
>
> Shouldn't these indexes be bumped up by 1 now that /sys/ is in the path?

Yes -- good catch.



More information about the anaconda-patches mailing list