From f2ac10f282d2c5def47487d845d4aa18e7054917 Mon Sep 17 00:00:00 2001 From: Cory Stone Date: Fri, 15 Mar 2013 10:19:14 -0500 Subject: [PATCH] Debug output the http body Output the kwargs[data] instead of kwargs[body] which was deleted. Change-Id: I233e37cceb7079ec78b9bde093967dea9ad94441 Fixes: bug #1155655 --- cinderclient/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cinderclient/client.py b/cinderclient/client.py index 513498a..2b58a04 100644 --- a/cinderclient/client.py +++ b/cinderclient/client.py @@ -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):