Skip to content

Commit c0cc230

Browse files
committed
Increase logging of pxe port state in inspection hook
1 parent 14ed0d5 commit c0cc230

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

python/ironic-understack/ironic_understack/inspect_hook_update_baremetal_ports.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,14 @@ def _set_port_attributes(
166166
if port.category != category:
167167
port.category = category
168168

169-
if port.pxe_enabled != pxe_enabled:
169+
if port.pxe_enabled == pxe_enabled:
170+
LOG.debug(
171+
"Node %s port %s pxe_enabled already set to %s",
172+
node_uuid,
173+
port.id,
174+
pxe_enabled,
175+
)
176+
else:
170177
LOG.debug(
171178
"Updating node %s port %s pxe_enabled from %s to %s",
172179
node_uuid,

0 commit comments

Comments
 (0)