Fix image-import call
Change the request body sent from the client to be the format that the API expects for the image-import call. Depends-On: I08783e28719e63b5a4b2115b8fce135e55be460a Change-Id: I5e34d772d561306c6f103c859740658a825dd189 Closes-bug: #1711259
This commit is contained in:
parent
6fe3018de8
commit
e5b69eff69
@ -255,7 +255,7 @@ class Controller(object):
|
||||
def image_import(self, image_id, method='glance-direct'):
|
||||
"""Import Image via method."""
|
||||
url = '/v2/images/%s/import' % image_id
|
||||
data = {'import_method': method}
|
||||
data = {'method': {'name': method}}
|
||||
resp, body = self.http_client.post(url, data=data)
|
||||
return body, resp
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user