summaryrefslogtreecommitdiff
path: root/openstackclient/network/v2/subnet.py
diff options
context:
space:
mode:
authorGábor Antal <antal@inf.u-szeged.hu>2017-02-13 18:13:29 +0100
committerGábor Antal <antal@inf.u-szeged.hu>2017-02-13 18:14:34 +0100
commitc9b1c2ad961a767927c7f0efc3b4df3c11804bc9 (patch)
treead93da23fdf0a2f49247f0706517df8eab46af37 /openstackclient/network/v2/subnet.py
parent30fdb488a8136aea65fad2522c0fc6a0a3e4058a (diff)
downloadpython-openstackclient-c9b1c2ad961a767927c7f0efc3b4df3c11804bc9.tar.gz
Handle log message interpolation by the logger in network/
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 Related-Bug: #1596829 Change-Id: I17467d01420750c004fbbf2a07730fc2badd62b8
Diffstat (limited to 'openstackclient/network/v2/subnet.py')
-rw-r--r--openstackclient/network/v2/subnet.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/openstackclient/network/v2/subnet.py b/openstackclient/network/v2/subnet.py
index 292b7c06..2771858b 100644
--- a/openstackclient/network/v2/subnet.py
+++ b/openstackclient/network/v2/subnet.py
@@ -365,8 +365,8 @@ class DeleteSubnet(command.Command):
except Exception as e:
result += 1
LOG.error(_("Failed to delete subnet with "
- "name or ID '%(subnet)s': %(e)s")
- % {'subnet': subnet, 'e': e})
+ "name or ID '%(subnet)s': %(e)s"),
+ {'subnet': subnet, 'e': e})
if result > 0:
total = len(parsed_args.subnet)