summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/images.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/api/openstack/images.py b/nova/api/openstack/images.py
index 0aabb9e56..ea4209e16 100644
--- a/nova/api/openstack/images.py
+++ b/nova/api/openstack/images.py
@@ -169,7 +169,8 @@ class ControllerV11(Controller):
def get_builder(self, request):
"""Property to get the ViewBuilder class we need to use."""
base_url = request.application_url
- return images_view.ViewBuilderV11(base_url)
+ project_id = request.environ['nova.context'].project_id
+ return images_view.ViewBuilderV11(base_url, project_id)
def index(self, req):
"""Return an index listing of images available to the request.