Merge "Fix string interpolation to delayed to be handled by the logging code"

This commit is contained in:
Jenkins
2016-07-16 03:45:03 +00:00
committed by Gerrit Code Review

View File

@@ -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):