diff options
author | Davanum Srinivas <dims@linux.vnet.ibm.com> | 2013-03-10 19:04:42 -0400 |
---|---|---|
committer | Davanum Srinivas <dims@linux.vnet.ibm.com> | 2013-03-10 19:04:42 -0400 |
commit | 946b704adda8b8bab048b7e69655958db8a5c5eb (patch) | |
tree | 8e0f4c2dffa966e1aa9e538a8e28241f7eab6581 | |
parent | 224ce632e9e519bae109ba51e17fe0754558e0f5 (diff) | |
download | oslo-context-946b704adda8b8bab048b7e69655958db8a5c5eb.tar.gz |
Fix inconsistency with auth_tok/auth_token
Switch to using auth_token instead of auth_ok
Fixes LP# 1152826
Change-Id: I56569c1fa8f29b0474440c40644729d436d41c7b
-rw-r--r-- | openstack/common/context.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openstack/common/context.py b/openstack/common/context.py index dd7dd04..442ab1d 100644 --- a/openstack/common/context.py +++ b/openstack/common/context.py @@ -37,9 +37,9 @@ class RequestContext(object): accesses the system, as well as additional request information. """ - def __init__(self, auth_tok=None, user=None, tenant=None, is_admin=False, + def __init__(self, auth_token=None, user=None, tenant=None, is_admin=False, read_only=False, show_deleted=False, request_id=None): - self.auth_tok = auth_tok + self.auth_token = auth_token self.user = user self.tenant = tenant self.is_admin = is_admin @@ -55,7 +55,7 @@ class RequestContext(object): 'is_admin': self.is_admin, 'read_only': self.read_only, 'show_deleted': self.show_deleted, - 'auth_token': self.auth_tok, + 'auth_token': self.auth_token, 'request_id': self.request_id} |