summaryrefslogtreecommitdiff
path: root/keystoneclient/client.py
diff options
context:
space:
mode:
authorRuby Loo <rloo@yahoo-inc.com>2013-01-24 21:42:14 +0000
committerRuby Loo <rloo@yahoo-inc.com>2013-01-24 21:42:14 +0000
commite0c3e30653916cd01fa4542842d86a69e0bbb077 (patch)
tree7ef2d8e0c1bbd77e287128ab80c6b92abb337f62 /keystoneclient/client.py
parent3dfb8437fc9135465f2b66b2c420bf20899fcf10 (diff)
downloadpython-keystoneclient-e0c3e30653916cd01fa4542842d86a69e0bbb077.tar.gz
If you specify the --debug argument, it doesn't show the body of a POST request. The
body (string rep) is at 'data' in the kwargs dict. 'body' was deleted prior to this call. Change-Id: Ieea3d11f5246ee785e41df3bc54ac61200808354 Fixes: bug #1104313
Diffstat (limited to 'keystoneclient/client.py')
-rw-r--r--keystoneclient/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/keystoneclient/client.py b/keystoneclient/client.py
index 6f2d1a4..29b9acd 100644
--- a/keystoneclient/client.py
+++ b/keystoneclient/client.py
@@ -287,8 +287,8 @@ class HTTPClient(object):
string_parts.append(header)
_logger.debug("REQ: %s" % "".join(string_parts))
- if 'body' in kwargs:
- _logger.debug("REQ BODY: %s\n" % (kwargs['body']))
+ if 'data' in kwargs:
+ _logger.debug("REQ BODY: %s\n" % (kwargs['data']))
def http_log_resp(self, resp):
if self.debug_log: