avoid f-strings in logging per flake8

flake8 checks recommend avoiding f-strings.
Change-Id: I1636cb45c73463b9b1d70ad784582beca277af4a
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
This commit is contained in:
Doug Goldstein
2025年01月24日 13:41:44 -06:00
parent c289ac0f18
commit dfdaf09508

View File

@@ -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):

View File

@@ -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 = {}

View File

@@ -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):
Reference in New Issue
openstack/ironic-python-agent
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.