A minor change of CamelCase parameter
We should not use CamelCase parameter, change it to lowcase one. Change-Id: I37e56c3863400c15fb0a4ce0bae7da3d76bfede7
This commit is contained in:
@@ -85,10 +85,10 @@ def get_function_by_ifname(ifname):
|
||||
return None, False
|
||||
|
||||
|
||||
def is_physical_function(PciAddress):
|
||||
def is_physical_function(pci_addr):
|
||||
dev_path = "/sys/bus/pci/devices/%(d)s:%(b)s:%(s)s.%(f)s/" % {
|
||||
"d": PciAddress.domain, "b": PciAddress.bus,
|
||||
"s": PciAddress.slot, "f": PciAddress.func}
|
||||
"d": pci_addr.domain, "b": pci_addr.bus,
|
||||
"s": pci_addr.slot, "f": pci_addr.func}
|
||||
try:
|
||||
dev_info = os.listdir(dev_path)
|
||||
for dev_file in dev_info:
|
||||
|
||||
Reference in New Issue
Block a user