BasePhysnetHook - Follow up
- Removes confusing comment in _get_physnet_patch method. - Move binary operator to follow code style. - Removed info log entry in before_update. - Move releasenote to 'other' section as this is no user faceing change. Change-Id: I53d8bf97a87ae365a085a795901eaed1f0c32d9b
This commit is contained in:
parent
436fd8ad99
commit
43de977994
@ -53,9 +53,8 @@ class BasePhysnetHook(base.ProcessingHook):
|
||||
:param port: The ironic port to patch.
|
||||
:returns: A dict to be used as a patch for the port, or None.
|
||||
"""
|
||||
# Bug is here.
|
||||
if (not CONF.processing.overwrite_existing or
|
||||
port.physical_network == physnet):
|
||||
if (not CONF.processing.overwrite_existing
|
||||
or port.physical_network == physnet):
|
||||
return
|
||||
return {'op': 'add', 'path': '/physical_network', 'value': physnet}
|
||||
|
||||
@ -63,8 +62,6 @@ class BasePhysnetHook(base.ProcessingHook):
|
||||
"""Process introspection data and patch port physical network."""
|
||||
inventory = utils.get_inventory(introspection_data)
|
||||
|
||||
LOG.info("Plugin: %s", type(self))
|
||||
|
||||
ironic_ports = node_info.ports()
|
||||
|
||||
for iface in inventory['interfaces']:
|
||||
|
@ -1,4 +1,4 @@
|
||||
---
|
||||
features:
|
||||
other:
|
||||
- Added base class (``BasePhysnetHook``) for plugins that assign a physical
|
||||
network to ports.
|
||||
|
Loading…
Reference in New Issue
Block a user