summaryrefslogtreecommitdiff
path: root/openstackclient/api/auth.py
diff options
context:
space:
mode:
authorting.wang <ting.wang@easystack.cn>2016-02-20 14:09:40 +0800
committerting.wang <ting.wang@easystack.cn>2016-02-20 14:16:25 +0800
commit5a978b9ec137cece167f0164dbb1754002a81bec (patch)
tree73ab464b04bce75e78949434ec9deb0db79a45c8 /openstackclient/api/auth.py
parentab6ba385a2c292a7a906390ad911db8c59811a07 (diff)
downloadpython-openstackclient-5a978b9ec137cece167f0164dbb1754002a81bec.tar.gz
Replace string format arguments with function parameters
There are files containing string format arguments inside logging messages. Using logging function parameters should be preferred. Change-Id: I15b405bf4d4715263fe1e1262982467b3d4bc1f4 Closes-Bug: #1321274
Diffstat (limited to 'openstackclient/api/auth.py')
-rw-r--r--openstackclient/api/auth.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/openstackclient/api/auth.py b/openstackclient/api/auth.py
index 66272e42..44287318 100644
--- a/openstackclient/api/auth.py
+++ b/openstackclient/api/auth.py
@@ -106,7 +106,7 @@ def select_auth_plugin(options):
# The ultimate default is similar to the original behaviour,
# but this time with version discovery
auth_plugin_name = 'osc_password'
- LOG.debug("Auth plugin %s selected" % auth_plugin_name)
+ LOG.debug("Auth plugin %s selected", auth_plugin_name)
return auth_plugin_name
@@ -130,7 +130,7 @@ def build_auth_params(auth_plugin_name, cmd_options):
auth_plugin_class = None
plugin_options = set([o.replace('-', '_') for o in get_options_list()])
for option in plugin_options:
- LOG.debug('fetching option %s' % option)
+ LOG.debug('fetching option %s', option)
auth_params[option] = getattr(cmd_options.auth, option, None)
return (auth_plugin_class, auth_params)