summaryrefslogtreecommitdiff
path: root/ironic
diff options
context:
space:
mode:
authorJonathan Rosser <jonathan.rosser@rd.bbc.co.uk>2022-12-07 13:51:36 +0000
committerJonathan Rosser <jonathan.rosser@rd.bbc.co.uk>2023-02-01 15:37:11 +0000
commit2929bcd52808797e6a73e8a73531c1610a9e8932 (patch)
tree509ae84842799886cd7e6a91522faa9e2346bf6e /ironic
parentc9c595f235cec04e1fa67f52680f6f698229ddef (diff)
downloadironic-2929bcd52808797e6a73e8a73531c1610a9e8932.tar.gz
Fix debug log message argument formatting
The format string is expecting a dictionary with keys matching those used in the format string. Any unused parameters will cause an "not all arguments converted during string formatting" exception. The quote style is also changed from double to single quotes to match the other logging statements in the code. Change-Id: Ic9dea4f51d82866be8ac16242a79237c789b9745
Diffstat (limited to 'ironic')
-rw-r--r--ironic/conductor/steps.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ironic/conductor/steps.py b/ironic/conductor/steps.py
index 252b094a9..5a0fdd7b4 100644
--- a/ironic/conductor/steps.py
+++ b/ironic/conductor/steps.py
@@ -194,9 +194,9 @@ def _get_cleaning_steps(task, enabled=False, sort=True):
sort_step_key=sort_key,
prio_overrides=csp_override)
- LOG.debug("cleaning_steps after applying "
- "clean_step_priority_override for node %(node)s: %(step)s",
- task.node.uuid, cleaning_steps)
+ LOG.debug('cleaning_steps after applying '
+ 'clean_step_priority_override for node %(node)s: %(steps)s',
+ {'node': task.node.uuid, 'steps': cleaning_steps})
else:
cleaning_steps = _get_steps(task, CLEANING_INTERFACE_PRIORITY,
'get_clean_steps', enabled=enabled,