Merge "Trivial: minor fixes in error messages"

This commit is contained in:
Zuul 2021-09-09 01:02:18 +00:00 committed by Gerrit Code Review
commit 47a7fb5ff7
3 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ class CleanExtension(base.BaseAgentExtension):
try:
result = hardware.dispatch_to_managers(step['step'], node, ports)
except Exception as e:
msg = ('Error performing clean_step %(step)s: %(err)s' %
msg = ('Error performing clean step %(step)s: %(err)s' %
{'step': step['step'], 'err': e})
LOG.exception(msg)
raise errors.CleaningError(msg)

View File

@ -76,7 +76,7 @@ class DeployExtension(base.BaseAgentExtension):
result = hardware.dispatch_to_managers(step['step'], node, ports,
**kwargs)
except Exception as e:
msg = ('Error performing deploy_step %(step)s: %(err)s' %
msg = ('Error performing deploy step %(step)s: %(err)s' %
{'step': step['step'], 'err': e})
LOG.exception(msg)
raise errors.DeploymentError(msg)

View File

@ -523,7 +523,7 @@ def _validate_partitioning(device):
except (processutils.UnknownArgumentError,
processutils.ProcessExecutionError, OSError) as e:
msg = ("Unable to find a valid partition table on the disk after "
"writing the image. Error {}".format(e))
f"writing the image. The image may be corrupted. Error: {e}")
raise exception.InstanceDeployFailure(msg)
# Check if there is at least one partition in the partition table after