diff options
| author | Gábor Antal <antal@inf.u-szeged.hu> | 2017-02-07 16:21:21 +0100 |
|---|---|---|
| committer | Gábor Antal <antal@inf.u-szeged.hu> | 2017-02-07 16:22:27 +0100 |
| commit | 84346b5dba784bfeb3a53ae83d400ba264263cf6 (patch) | |
| tree | d7c970d2704ba32436e31c29bc7ba43fb0ac9eec /cinderclient/shell.py | |
| parent | d10b467af4e2aabbd7935ebbe0eeacce2ce533e3 (diff) | |
| download | python-cinderclient-84346b5dba784bfeb3a53ae83d400ba264263cf6.tar.gz | |
Handle log message interpolation by the logger
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: Ib5f86d1f0846e292457813c893b73c6999e554a5
Closes-Bug: #1596829
Diffstat (limited to 'cinderclient/shell.py')
| -rw-r--r-- | cinderclient/shell.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cinderclient/shell.py b/cinderclient/shell.py index 4ba2f81..d967f76 100644 --- a/cinderclient/shell.py +++ b/cinderclient/shell.py @@ -757,12 +757,12 @@ class OpenStackCinderShell(object): if api_version_input: logger.warning("Cannot determine the API version from " "the endpoint URL. Falling back to the " - "user-specified version: %s" % + "user-specified version: %s", endpoint_api_version) else: logger.warning("Cannot determine the API version from the " "endpoint URL or user input. Falling back " - "to the default API version: %s" % + "to the default API version: %s", endpoint_api_version) profile = osprofiler_profiler and options.profile |
