diff --git a/ironic_python_agent/disk_utils.py b/ironic_python_agent/disk_utils.py index 0daa3dbe7..55fa44869 100644 --- a/ironic_python_agent/disk_utils.py +++ b/ironic_python_agent/disk_utils.py @@ -581,8 +581,8 @@ def destroy_disk_metadata(dev, node_uuid): raise errors.DeploymentError( f'Destroying metadata failed on device {dev}s. Error: {e}') - LOG.info(f"Disk metadata on {dev} successfully destroyed for node " - f"{node_uuid}") + LOG.info("Disk metadata on %s successfully destroyed for node " + "%s", dev, node_uuid) def _fix_gpt_structs(device, node_uuid): diff --git a/ironic_python_agent/mdns.py b/ironic_python_agent/mdns.py index 5a982f084..7a56c64cd 100644 --- a/ironic_python_agent/mdns.py +++ b/ironic_python_agent/mdns.py @@ -124,8 +124,8 @@ class Zeroconf(object): f'None of addresses {all_addr} for service %(' '{service_type} are valid') else: - LOG.warning(f'None of addresses {all_addr} seem routable, ' - f'using {fallback}') + LOG.warning('None of addresses %s seem routable, ' + 'using %s', all_addr, fallback) address = fallback properties = {} diff --git a/ironic_python_agent/utils.py b/ironic_python_agent/utils.py index 31bcd5501..f208c73d2 100644 --- a/ironic_python_agent/utils.py +++ b/ironic_python_agent/utils.py @@ -267,7 +267,7 @@ def unlink_without_raise(path): if e.errno == errno.ENOENT: return else: - LOG.warning(f"Failed to unlink {path}, error: {e}") + LOG.warning("Failed to unlink %s, error: %s", path, e) def _read_params_from_file(filepath):