diff --git a/ironic_inspector/plugins/base_physnet.py b/ironic_inspector/plugins/base_physnet.py index 0cd3c8870..2934caa8d 100644 --- a/ironic_inspector/plugins/base_physnet.py +++ b/ironic_inspector/plugins/base_physnet.py @@ -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']: diff --git a/releasenotes/notes/physnet-base-4499ad3a7c08725f.yaml b/releasenotes/notes/physnet-base-4499ad3a7c08725f.yaml index 28c6e7996..bccabcfb3 100644 --- a/releasenotes/notes/physnet-base-4499ad3a7c08725f.yaml +++ b/releasenotes/notes/physnet-base-4499ad3a7c08725f.yaml @@ -1,4 +1,4 @@ --- -features: +other: - Added base class (``BasePhysnetHook``) for plugins that assign a physical network to ports.