From a3223b99724eb04701b8d1d87d6f8d03bd581521 Mon Sep 17 00:00:00 2001 From: Andy McCrae Date: Thu, 25 Apr 2013 13:59:54 +0100 Subject: [PATCH] Fix inconsistent --debug messages on image-update image-update --debug message no longer adds '-d "None"' to the curl command that is output. This keeps the curl output consistent with the client request. Fixes bug #1172702 Change-Id: I34ceeb6f4a67c753ca3a805ec11240a99ce38ec4 --- glanceclient/common/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glanceclient/common/http.py b/glanceclient/common/http.py index d323d583..b831cb78 100644 --- a/glanceclient/common/http.py +++ b/glanceclient/common/http.py @@ -126,7 +126,7 @@ class HTTPClient(object): if self.connection_kwargs.get('insecure'): curl.append('-k') - if 'body' in kwargs: + if kwargs.get('body') is not None: curl.append('-d \'%s\'' % kwargs['body']) curl.append('%s%s' % (self.endpoint, url))