diff options
| author | Gábor Antal <antal@inf.u-szeged.hu> | 2017-02-13 17:36:56 +0100 |
|---|---|---|
| committer | Gábor Antal <antal@inf.u-szeged.hu> | 2017-02-13 17:38:30 +0100 |
| commit | 335c8d3ef3e5d1112a90d2efa267e5f00a2c5357 (patch) | |
| tree | 852dd146bea6eaeaa33738900ea32bdee4faf428 /openstackclient/identity/v3/domain.py | |
| parent | 30fdb488a8136aea65fad2522c0fc6a0a3e4058a (diff) | |
| download | python-openstackclient-335c8d3ef3e5d1112a90d2efa267e5f00a2c5357.tar.gz | |
Handle log message interpolation by the logger in identity/
According to OpenStack Guideline[1], logged string message should be
interpolated by the logger.
[1]: http://docs.openstack.org/developer/oslo.i18n/guidelines.html#adding-variables-to-log-messages
Change-Id: I1d6588093616099a9eef0947c09e038b9e53493a
Related-Bug: #1596829
Diffstat (limited to 'openstackclient/identity/v3/domain.py')
| -rw-r--r-- | openstackclient/identity/v3/domain.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openstackclient/identity/v3/domain.py b/openstackclient/identity/v3/domain.py index 59ab0f07..064624ab 100644 --- a/openstackclient/identity/v3/domain.py +++ b/openstackclient/identity/v3/domain.py @@ -111,8 +111,7 @@ class DeleteDomain(command.Command): except Exception as e: result += 1 LOG.error(_("Failed to delete domain with name or " - "ID '%(domain)s': %(e)s") - % {'domain': i, 'e': e}) + "ID '%(domain)s': %(e)s"), {'domain': i, 'e': e}) if result > 0: total = len(parsed_args.domain) |
