diff options
| author | Jenkins <jenkins@review.openstack.org> | 2011-10-12 01:40:04 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2011-10-12 01:40:04 +0000 |
| commit | f5f429bac6446db084ca3f5d86c64127a1e539f2 (patch) | |
| tree | f02bbe8b7f618d5c646709c4d2df1fb8a99d70c8 /nova/api | |
| parent | e95e923f2bee1fa3e5005bb99ec0d41e4931cec8 (diff) | |
| parent | f3fb16a7935e91f8c9034d1da84a2b17cbe186f8 (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.py | 5 |
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 |
