summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2011-10-12 01:40:04 +0000
committerGerrit Code Review <review@openstack.org>2011-10-12 01:40:04 +0000
commitf5f429bac6446db084ca3f5d86c64127a1e539f2 (patch)
treef02bbe8b7f618d5c646709c4d2df1fb8a99d70c8 /nova/api
parente95e923f2bee1fa3e5005bb99ec0d41e4931cec8 (diff)
parentf3fb16a7935e91f8c9034d1da84a2b17cbe186f8 (diff)
Merge "Adds the tenant id to the create images response Location header Fixes bug 862672"
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/servers.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py
index 18eef2464..61cda6782 100644
--- a/nova/api/openstack/servers.py
+++ b/nova/api/openstack/servers.py
@@ -1070,7 +1070,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