summaryrefslogtreecommitdiff
path: root/keystoneclient/session.py
diff options
context:
space:
mode:
authorJamie Lennox <jamielennox@redhat.com>2013-12-17 15:34:57 +1000
committerGerrit Code Review <review@openstack.org>2014-01-09 01:11:42 +0000
commite2a5c2a82976c99f3a171b8aa4c41ea08820ae31 (patch)
treefdb940b55931f5b5db648b2c241ede19aad4fe9c /keystoneclient/session.py
parent0b25aa7c80e1686be848b8dbde3b7a02d53b0a72 (diff)
downloadpython-keystoneclient-e2a5c2a82976c99f3a171b8aa4c41ea08820ae31.tar.gz
Saner debug log message generation
For some reason building the debug log would include spaces in the message elements and join on the empty string. It makes much more sense to just build the list and join on the space. Change-Id: Idd82787b87518c56122d0b13551f84529306337c
Diffstat (limited to 'keystoneclient/session.py')
-rw-r--r--keystoneclient/session.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/keystoneclient/session.py b/keystoneclient/session.py
index 5382ee9..71d7fa7 100644
--- a/keystoneclient/session.py
+++ b/keystoneclient/session.py
@@ -135,15 +135,15 @@ class Session(object):
string_parts = ['curl -i']
if method:
- string_parts.extend([' -X ', method])
+ string_parts.extend(['-X', method])
- string_parts.extend([' ', url])
+ string_parts.append(url)
if headers:
for header in six.iteritems(headers):
- string_parts.append(' -H "%s: %s"' % header)
+ string_parts.append('-H "%s: %s"' % header)
- _logger.debug('REQ: %s', ''.join(string_parts))
+ _logger.debug('REQ: %s', ' '.join(string_parts))
data = kwargs.get('data')
if data: