Stop looking for v2 image in container
The v2 API no longer returns images in JSON containers like
'{"image": {...}}', so stop trying to decode the responses
as if it does.
Fix bug 1031185
Change-Id: I5209fe76445d4195b12944146a0ef190883f363f
This commit is contained in:
@@ -52,5 +52,5 @@ class Controller(object):
|
||||
resp, body = self.http_client.json_request('GET', url)
|
||||
#NOTE(bcwaldon): remove 'self' for now until we have an elegant
|
||||
# way to pass it into the model constructor without conflict
|
||||
body['image'].pop('self', None)
|
||||
return self.model(**body['image'])
|
||||
body.pop('self', None)
|
||||
return self.model(**body)
|
||||
|
||||
Reference in New Issue
Block a user