Clean up driver_factory.enabled_supported_interfaces
This had an extra variable (and related work) that was unnecessary, clean it up. Change-Id: I245946a36e891d305dd06dfd3944a6e623d731a4 Partial-Bug: #1524745
This commit is contained in:
parent
3c45f2fd1b
commit
d46ab0d0b2
@ -347,14 +347,12 @@ def enabled_supported_interfaces(hardware_type):
|
||||
mapping = dict()
|
||||
for interface_type in driver_base.ALL_INTERFACES:
|
||||
supported = set()
|
||||
enabled = set()
|
||||
supported_ifaces = getattr(hardware_type,
|
||||
'supported_%s_interfaces' % interface_type)
|
||||
for name, iface in interfaces(interface_type).items():
|
||||
enabled.add(name)
|
||||
if iface.__class__ in supported_ifaces:
|
||||
supported.add(name)
|
||||
mapping[interface_type] = enabled.intersection(supported)
|
||||
mapping[interface_type] = supported
|
||||
return mapping
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user