mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-08-01 12:44:29 +00:00
Merge "fix os_user_role for groups in multidomain context"
This commit is contained in:
@@ -156,6 +156,9 @@ def main():
|
||||
module.fail_json(msg="User %s is not valid" % user)
|
||||
filters['user'] = u['id']
|
||||
if group:
|
||||
if domain:
|
||||
g = cloud.get_group(group, domain_id=filters['domain'])
|
||||
else:
|
||||
g = cloud.get_group(group)
|
||||
if g is None:
|
||||
module.fail_json(msg="Group %s is not valid" % group)
|
||||
|
||||
Reference in New Issue
Block a user