diff options
author | Jim Rollenhagen <jim@jimrollenhagen.com> | 2017-01-19 20:42:25 +0000 |
---|---|---|
committer | Jim Rollenhagen <jim@jimrollenhagen.com> | 2017-01-19 20:44:34 +0000 |
commit | d46ab0d0b2972e54ff5b66294bdfb38d2c9f3ecf (patch) | |
tree | 5f352a4c8c7e311e1d400a68cd79fb3fff202179 /ironic/common | |
parent | 3c45f2fd1b8ca90ecc02ec32206eadab0333c7a1 (diff) | |
download | ironic-d46ab0d0b2972e54ff5b66294bdfb38d2c9f3ecf.tar.gz |
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
Diffstat (limited to 'ironic/common')
-rw-r--r-- | ironic/common/driver_factory.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ironic/common/driver_factory.py b/ironic/common/driver_factory.py index 2e469b0cb..1b9e9e410 100644 --- a/ironic/common/driver_factory.py +++ b/ironic/common/driver_factory.py @@ -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 |