summaryrefslogtreecommitdiff
path: root/cinderclient/api_versions.py
diff options
context:
space:
mode:
authorhaobing1 <hao.bing1@zte.com.cn>2016-07-15 17:54:30 +0800
committerhaobing1 <hao.bing1@zte.com.cn>2016-07-15 17:54:30 +0800
commitd2f4b63f647da7c0f1bf36858617ef0e71496cff (patch)
tree6708d2a5d99f4e1d912cd9be67040a45bf12bd68 /cinderclient/api_versions.py
parent09b51a294ecbe8898580fa75c124a569a386d29f (diff)
downloadpython-cinderclient-d2f4b63f647da7c0f1bf36858617ef0e71496cff.tar.gz
Fix string interpolation to delayed to be handled by the logging code
String interpolation should be delayed to be handled by the logging code, rather than being done at the point of the logging call. See the oslo i18n guideline. * http://docs.openstack.org/developer/oslo.i18n/guidelines.html Change-Id: I3fa26c1c5c672d5505fa556e03af35318f4774ab Closes-Bug: #1596829
Diffstat (limited to 'cinderclient/api_versions.py')
-rw-r--r--cinderclient/api_versions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cinderclient/api_versions.py b/cinderclient/api_versions.py
index a74f3af..6644684 100644
--- a/cinderclient/api_versions.py
+++ b/cinderclient/api_versions.py
@@ -228,7 +228,7 @@ def get_api_version(version_string):
version_string = str(version_string)
if version_string in DEPRECATED_VERSIONS:
LOG.warning("Version %(deprecated_version)s is deprecated, use "
- "alternative version %(alternative)s instead." %
+ "alternative version %(alternative)s instead.",
{"deprecated_version": version_string,
"alternative": DEPRECATED_VERSIONS[version_string]})
if strutils.is_int_like(version_string):