summaryrefslogtreecommitdiff
path: root/keystoneclient/access.py
diff options
context:
space:
mode:
authorJamie Lennox <jamielennox@redhat.com>2014-02-20 16:53:33 +1000
committerJamie Lennox <jamielennox@redhat.com>2014-02-20 16:53:33 +1000
commita1278112cad2e2d4f83cbb950fa1054aeb2690e0 (patch)
tree386549d109ae9695a6dc1ed98d347a6109302a42 /keystoneclient/access.py
parentc0165b1a88317aced61e8c98d34f078c30bd15b4 (diff)
downloadpython-keystoneclient-a1278112cad2e2d4f83cbb950fa1054aeb2690e0.tar.gz
Fix role_names call from V3 AccessInfo
This was probably initially written against an incorrect test token. Change-Id: I3e1eb0cb207864dbadb01a477b180058902bb0cd Closes-Bug: #1282410
Diffstat (limited to 'keystoneclient/access.py')
-rw-r--r--keystoneclient/access.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/keystoneclient/access.py b/keystoneclient/access.py
index 50b7a2a..250d8ed 100644
--- a/keystoneclient/access.py
+++ b/keystoneclient/access.py
@@ -530,7 +530,7 @@ class AccessInfoV3(AccessInfo):
@property
def role_names(self):
- return [r['name'] for r in self['user'].get('roles', [])]
+ return [r['name'] for r in self.get('roles', [])]
@property
def username(self):