summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio Cazzolato <sergio.j.cazzolato@intel.com>2013-11-29 20:46:22 -0500
committerJohn Dickinson <me@not.mn>2014-02-06 17:31:32 -0800
commitd387c61daa9fa57607223e598d52edfd5d64ffa3 (patch)
tree02a734ba92059875a3e4951eaf3641a2af2ef732
parent9b73547b7de004fe623e454c425e9deee5d3d0ca (diff)
downloadpython-swiftclient-d387c61daa9fa57607223e598d52edfd5d64ffa3.tar.gz
changed things because reasons
Dictionaries added in texts to improve readability in case there are 2 params Change-Id: I064cceeaa56b232504c6f0b6c215c9c5dbb7fcef
-rw-r--r--swiftclient/client.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/swiftclient/client.py b/swiftclient/client.py
index afd11be..d23d467 100644
--- a/swiftclient/client.py
+++ b/swiftclient/client.py
@@ -538,8 +538,11 @@ def get_container(url, token, container, marker=None, limit=None,
conn.request(method, '%s?%s' % (cont_path, qs), '', headers)
resp = conn.getresponse()
body = resp.read()
- http_log(('%s%s?%s' % (url.replace(parsed.path, ''), cont_path, qs),
- method,), {'headers': headers}, resp, body)
+ http_log(('%(url)s%(cont_path)s?%(qs)s' %
+ {'url': url.replace(parsed.path, ''),
+ 'cont_path': cont_path,
+ 'qs': qs}, method,),
+ {'headers': headers}, resp, body)
if resp.status < 200 or resp.status >= 300:
raise ClientException('Container GET failed',