Added domain_id param to get_group

This commit is contained in:
Phillipe Smith 2019-05-28 09:44:36 -03:00 committed by GitHub
parent 6f1ff8eb8e
commit 7872090943
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,7 +151,7 @@ def main():
module.fail_json(msg="User %s is not valid" % user) module.fail_json(msg="User %s is not valid" % user)
filters['user'] = u['id'] filters['user'] = u['id']
if group: if group:
g = cloud.get_group(group) g = cloud.get_group(group, domain_id=filters['domain'])
if g is None: if g is None:
module.fail_json(msg="Group %s is not valid" % group) module.fail_json(msg="Group %s is not valid" % group)
filters['group'] = g['id'] filters['group'] = g['id']