Debug output the http body

Output the kwargs[data] instead of kwargs[body] which was deleted.

Change-Id: I233e37cceb7079ec78b9bde093967dea9ad94441
Fixes: bug #1155655
This commit is contained in:
Cory Stone 2013-03-15 10:19:14 -05:00
parent 458ff24513
commit f2ac10f282

@ -93,8 +93,8 @@ class HTTPClient(object):
header = ' -H "%s: %s"' % (element, kwargs['headers'][element])
string_parts.append(header)
if 'body' in kwargs:
string_parts.append(" -d '%s'" % (kwargs['body']))
if 'data' in kwargs:
string_parts.append(" -d '%s'" % (kwargs['data']))
self._logger.debug("\nREQ: %s\n" % "".join(string_parts))
def http_log_resp(self, resp):