From 0e867f3d85773369a45d0680043ffaf40e4b1848 Mon Sep 17 00:00:00 2001 From: Naveed Massjouni Date: Thu, 8 Mar 2012 19:47:10 +0000 Subject: Fixing image snapshots server links The responses for images that are snapshots should honor the configured link prefix for the server links. Change-Id: Ie6218c532fe5f012307309832e6b079f72f52a5b --- nova/api/openstack/compute/views/images.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nova/api') diff --git a/nova/api/openstack/compute/views/images.py b/nova/api/openstack/compute/views/images.py index 865e7df85..c9b8e5804 100644 --- a/nova/api/openstack/compute/views/images.py +++ b/nova/api/openstack/compute/views/images.py @@ -59,6 +59,8 @@ class ViewBuilder(common.ViewBuilder): if instance_uuid is not None: server_ref = os.path.join(request.application_url, 'servers', instance_uuid) + server_ref = self._update_link_prefix(server_ref, + FLAGS.osapi_compute_link_prefix) image_dict["server"] = { "id": instance_uuid, "links": [{ -- cgit