summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/wsgi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/api/openstack/wsgi.py b/nova/api/openstack/wsgi.py
index 7c22ed57a..bf5697b7e 100644
--- a/nova/api/openstack/wsgi.py
+++ b/nova/api/openstack/wsgi.py
@@ -486,8 +486,8 @@ class Resource(wsgi.Application):
msg = _("Malformed request body")
return faults.Fault(webob.exc.HTTPBadRequest(explanation=msg))
- #Remove tenant id
- args.pop("tenant_id")
+ if 'tenant_id' in args:
+ request['nova.context']['tenant_id'] = args.pop("tenant_id")
try:
action_result = self.dispatch(request, action, args)