diff options
| author | Jenkins <jenkins@review.openstack.org> | 2017-02-14 01:28:54 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2017-02-14 01:28:54 +0000 |
| commit | f945cf7b5c263ca2fa47c636b498cd286b9767db (patch) | |
| tree | f708d0b66bc70c2a42baea08195e4874d1b64120 /openstackclient/compute/v2/flavor.py | |
| parent | 7aa7b3a76b33a7d09f168550f3b58d4199203f6e (diff) | |
| parent | 1c91e9828d64c927cc28d9de61dd56887ca59dff (diff) | |
| download | python-openstackclient-f945cf7b5c263ca2fa47c636b498cd286b9767db.tar.gz | |
Merge "Handle log message interpolation by the logger in compute/"
Diffstat (limited to 'openstackclient/compute/v2/flavor.py')
| -rw-r--r-- | openstackclient/compute/v2/flavor.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/openstackclient/compute/v2/flavor.py b/openstackclient/compute/v2/flavor.py index 7e213f73..009c9bd1 100644 --- a/openstackclient/compute/v2/flavor.py +++ b/openstackclient/compute/v2/flavor.py @@ -171,7 +171,7 @@ class CreateFlavor(command.ShowOne): except Exception as e: msg = _("Failed to add project %(project)s access to " "flavor: %(e)s") - LOG.error(msg % {'project': parsed_args.project, 'e': e}) + LOG.error(msg, {'project': parsed_args.project, 'e': e}) if parsed_args.property: try: flavor.set_keys(parsed_args.property) @@ -208,8 +208,7 @@ class DeleteFlavor(command.Command): except Exception as e: result += 1 LOG.error(_("Failed to delete flavor with name or " - "ID '%(flavor)s': %(e)s") - % {'flavor': f, 'e': e}) + "ID '%(flavor)s': %(e)s"), {'flavor': f, 'e': e}) if result > 0: total = len(parsed_args.flavor) @@ -412,7 +411,7 @@ class ShowFlavor(command.ShowOne): except Exception as e: msg = _("Failed to get access projects list " "for flavor '%(flavor)s': %(e)s") - LOG.error(msg % {'flavor': parsed_args.flavor, 'e': e}) + LOG.error(msg, {'flavor': parsed_args.flavor, 'e': e}) flavor = resource_flavor._info.copy() flavor.update({ |
