Merge "Fix image-import call"

This commit is contained in:
Jenkins 2017-08-24 09:17:30 +00:00 committed by Gerrit Code Review
commit b956f48078
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,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