From 2ca2978232a66e0e0c86cf3b3862bb79a56781fd Mon Sep 17 00:00:00 2001 From: wangzhiguang Date: Mon, 11 Sep 2023 15:13:19 +0800 Subject: [PATCH] resolve keyerror for string format Closes-Bug: #2035073 Change-Id: I44cfb3fa95314974df2c8d897e5a527f47be02b5 --- cyborgclient/osc/v2/attribute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyborgclient/osc/v2/attribute.py b/cyborgclient/osc/v2/attribute.py index cacbe03..f562a52 100644 --- a/cyborgclient/osc/v2/attribute.py +++ b/cyborgclient/osc/v2/attribute.py @@ -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))