resolve keyerror for string format

Closes-Bug: #2035073

Change-Id: I44cfb3fa95314974df2c8d897e5a527f47be02b5
This commit is contained in:
wangzhiguang 2023-09-11 15:13:19 +08:00 committed by Wenping Song
parent 51c06d55f1
commit 2ca2978232
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ class DeleteAttribute(command.Command):
raise exc.CommandError(_('Attribute %s not found') % uuid)
except exc.ClientException as e:
failures.append(_("Failed to delete attribute \
%(attribute)s: %(error)s")
%(uuid)s: %(error)s")
% {'uuid': uuid, 'error': e})
if failures:
raise exc.ClientException("\n".join(failures))