diff options
author | Jenkins <jenkins@review.openstack.org> | 2012-07-03 19:03:26 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2012-07-03 19:03:26 +0000 |
commit | b0255f5b35513f4cbf6c603b91776cbff53168bb (patch) | |
tree | 2845bac44205185adb59a989640d6e8692294e34 /nova/context.py | |
parent | dde5b01ce129fb47050d126051775c31e36f3b89 (diff) | |
parent | 94a34e0e69a520e403a2d8e579186fad9acf14c7 (diff) | |
download | nova-b0255f5b35513f4cbf6c603b91776cbff53168bb.tar.gz nova-b0255f5b35513f4cbf6c603b91776cbff53168bb.tar.xz nova-b0255f5b35513f4cbf6c603b91776cbff53168bb.zip |
Merge "Add ServiceCatalog entries to enable Cinder usage"
Diffstat (limited to 'nova/context.py')
-rw-r--r-- | nova/context.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nova/context.py b/nova/context.py index cb3ee5ebc..5712193fb 100644 --- a/nova/context.py +++ b/nova/context.py @@ -45,7 +45,7 @@ class RequestContext(object): roles=None, remote_address=None, timestamp=None, request_id=None, auth_token=None, overwrite=True, quota_class=None, user_name=None, project_name=None, - **kwargs): + service_catalog=None, **kwargs): """ :param read_deleted: 'no' indicates deleted records are hidden, 'yes' indicates deleted records are visible, 'only' indicates that @@ -80,6 +80,7 @@ class RequestContext(object): request_id = generate_request_id() self.request_id = request_id self.auth_token = auth_token + self.service_catalog = service_catalog # NOTE(markmc): this attribute is currently only used by the # rs_limits turnstile pre-processor. @@ -121,6 +122,7 @@ class RequestContext(object): 'auth_token': self.auth_token, 'quota_class': self.quota_class, 'user_name': self.user_name, + 'service_catalog': self.service_catalog, 'project_name': self.project_name} @classmethod |