1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #672 from marktheunissen/fix-user-module

Undefined variable error
This commit is contained in:
Michael DeHaan 2012-07-24 07:32:26 -07:00
commit c2a63a5ce3

View file

@ -106,7 +106,7 @@ def user_mod(module, user, **kwargs):
elif key == 'group' and kwargs[key] is not None:
if not group_exists(kwargs[key]):
module.fail_json(msg="Group %s does not exist" % (kwargs[key]))
ginfo = group_info(group)
ginfo = group_info(kwargs[key])
if info[3] != ginfo[2]:
cmd.append('-g')
cmd.append(kwargs[key])