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
This commit is contained in:
Andy McCrae
2013-04-25 13:59:54 +01:00
parent addd3c3be3
commit a3223b9972

View File

@@ -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))