diff options
author | Dan Wendlandt <dan@nicira.com> | 2011-09-07 14:27:06 -0700 |
---|---|---|
committer | Dan Wendlandt <dan@nicira.com> | 2011-09-07 14:27:06 -0700 |
commit | 0f5eb3f888de5f6eb23f968fa5a2270d2a350bcc (patch) | |
tree | 0ee3f8a60147da042b0b14db350a320228876fa6 /nova/context.py | |
parent | e5e3b306985a3b1fdd8a971f48b76eaf8f923f21 (diff) | |
parent | 3e0698e3b57c9f73a359340f51c2797d8adc669a (diff) | |
download | nova-0f5eb3f888de5f6eb23f968fa5a2270d2a350bcc.tar.gz nova-0f5eb3f888de5f6eb23f968fa5a2270d2a350bcc.tar.xz nova-0f5eb3f888de5f6eb23f968fa5a2270d2a350bcc.zip |
merge trunk
Diffstat (limited to 'nova/context.py')
-rw-r--r-- | nova/context.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/context.py b/nova/context.py index b917a1d81..5c22641a0 100644 --- a/nova/context.py +++ b/nova/context.py @@ -38,7 +38,7 @@ class RequestContext(object): self.roles = roles or [] self.is_admin = is_admin if self.is_admin is None: - self.admin = 'admin' in self.roles + self.is_admin = 'admin' in [x.lower() for x in self.roles] self.read_deleted = read_deleted self.remote_address = remote_address if not timestamp: |