Handle role properly when it is changed in kolla_keystone_user module
Change-Id: I128559f9bcfe48b786a3f52fe4e04bd47cac7a7d Closes-Bug: #1791896
This commit is contained in:
parent
61bd563447
commit
e08da5f983
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user