Merge "Handle role properly when it is changed in kolla_keystone_user module"

This commit is contained in:
Zuul 2018-09-20 08:40:07 +00:00 committed by Gerrit Code Review
commit 6a0b2ee29a

View File

@ -68,6 +68,12 @@ def main():
password=password,
default_project=project,
domain_id='default')
role_assignments = cloud.keystone_client.role_assignments
assignment = role_assignments.list(user=user,
project=project,
role=role)
if not assignment:
changed = True
cloud.grant_role(role,
user=user,
project=project)