diff options
| author | Alex Meade <alex.meade@rackspace.com> | 2011-08-08 12:57:38 -0400 |
|---|---|---|
| committer | Alex Meade <alex.meade@rackspace.com> | 2011-08-08 12:57:38 -0400 |
| commit | fe4c7ca6f21f367b3f6ca1a536fdcd550f301fba (patch) | |
| tree | 953573f0cbc57dd27f4f123337eb862326504867 /nova/api | |
| parent | 4acc4a9757af6e68456aba1fea2b320b2311b971 (diff) | |
| download | nova-fe4c7ca6f21f367b3f6ca1a536fdcd550f301fba.tar.gz nova-fe4c7ca6f21f367b3f6ca1a536fdcd550f301fba.tar.xz nova-fe4c7ca6f21f367b3f6ca1a536fdcd550f301fba.zip | |
Assign tenant id in nova.context
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/wsgi.py | 4 |
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) |
