From f3fb16a7935e91f8c9034d1da84a2b17cbe186f8 Mon Sep 17 00:00:00 2001 From: Alex Meade Date: Thu, 29 Sep 2011 15:58:43 -0400 Subject: Adds the tenant id to the create images response Location header Fixes bug 862672 Change-Id: I85fc91c64146b02718dad77686762e26bdfce08c --- nova/api/openstack/servers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'nova/api') diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py index d01efd904..8da3a8ff8 100644 --- a/nova/api/openstack/servers.py +++ b/nova/api/openstack/servers.py @@ -1244,7 +1244,10 @@ class ControllerV11(Controller): # build location of newly-created image entity image_id = str(image['id']) - image_ref = os.path.join(req.application_url, 'images', image_id) + image_ref = os.path.join(req.application_url, + context.project_id, + 'images', + image_id) resp = webob.Response(status_int=202) resp.headers['Location'] = image_ref -- cgit