summaryrefslogtreecommitdiff
path: root/nova/api
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-05-25 08:34:43 +0000
committerGerrit Code Review <review@openstack.org>2014-05-25 08:34:43 +0000
commitb2f875cd10883c8edfaac7eb9492bec68fcd7f72 (patch)
treeaea089f8d490698924986cc4f09dc765e894fe6c /nova/api
parent76d6dee94df6a73062b5e4254139c2d4968cfb82 (diff)
parent5122269147252d3f83b782b9909a07a99152dc95 (diff)
downloadnova-b2f875cd10883c8edfaac7eb9492bec68fcd7f72.tar.gz
Merge "Align internal image API with volume and network"
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/compute/plugins/v3/servers.py6
-rw-r--r--nova/api/openstack/compute/servers.py6
2 files changed, 4 insertions, 8 deletions
diff --git a/nova/api/openstack/compute/plugins/v3/servers.py b/nova/api/openstack/compute/plugins/v3/servers.py
index 70c0523be5..b324a4c1f7 100644
--- a/nova/api/openstack/compute/plugins/v3/servers.py
+++ b/nova/api/openstack/compute/plugins/v3/servers.py
@@ -903,13 +903,11 @@ class ServersController(wsgi.Controller):
img = instance['image_ref']
if not img:
props = bdms.root_metadata(
- context, self.compute_api.image_service,
+ context, self.compute_api.image_api,
self.compute_api.volume_api)
image_meta = {'properties': props}
else:
- src_image = self.compute_api.\
- image_service.show(context, img)
- image_meta = dict(src_image)
+ image_meta = self.compute_api.image_api.get(context, img)
image = self.compute_api.snapshot_volume_backed(
context,
diff --git a/nova/api/openstack/compute/servers.py b/nova/api/openstack/compute/servers.py
index b11db3b0bd..831eb9ff9b 100644
--- a/nova/api/openstack/compute/servers.py
+++ b/nova/api/openstack/compute/servers.py
@@ -1443,13 +1443,11 @@ class Controller(wsgi.Controller):
img = instance['image_ref']
if not img:
props = bdms.root_metadata(
- context, self.compute_api.image_service,
+ context, self.compute_api.image_api,
self.compute_api.volume_api)
image_meta = {'properties': props}
else:
- src_image = self.compute_api.image_service.\
- show(context, img)
- image_meta = dict(src_image)
+ image_meta = self.compute_api.image_api.get(context, img)
image = self.compute_api.snapshot_volume_backed(
context,