diff --git a/tempest/lib/common/cred_client.py b/tempest/lib/common/cred_client.py index ea060115f1..a81f53c9cd 100644 --- a/tempest/lib/common/cred_client.py +++ b/tempest/lib/common/cred_client.py @@ -59,7 +59,8 @@ class CredsClient(object): def _check_role_exists(self, role_name): try: roles = self._list_roles() - role = next(r for r in roles if r['name'] == role_name) + lc_role_name = role_name.lower() + role = next(r for r in roles if r['name'].lower() == lc_role_name) except StopIteration: return None return role