Skip to content

Commit

Permalink
Merge "Fixes the check for admin role to be case-insenstive"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Aug 9, 2014
2 parents cb5295c + 4767eee commit 11693f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rally/osclients.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ def verified_keystone(self):
try:
# Ensure that user is admin
client = self.keystone()
if 'admin' not in client.auth_ref.role_names:
if 'admin' not in [role.lower() for role in
client.auth_ref.role_names]:
raise exceptions.InvalidAdminException(
username=self.endpoint.username)
except keystone_exceptions.Unauthorized:
Expand Down

0 comments on commit 11693f5

Please sign in to comment.