Undefined variable error
This commit is contained in:
parent
54db17f462
commit
b7b44fbf93
1 changed files with 1 additions and 1 deletions
2
user
2
user
|
@ -106,7 +106,7 @@ def user_mod(module, user, **kwargs):
|
||||||
elif key == 'group' and kwargs[key] is not None:
|
elif key == 'group' and kwargs[key] is not None:
|
||||||
if not group_exists(kwargs[key]):
|
if not group_exists(kwargs[key]):
|
||||||
module.fail_json(msg="Group %s does not exist" % (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]:
|
if info[3] != ginfo[2]:
|
||||||
cmd.append('-g')
|
cmd.append('-g')
|
||||||
cmd.append(kwargs[key])
|
cmd.append(kwargs[key])
|
||||||
|
|
Loading…
Reference in a new issue