Fix "NameError: global name 'name' is not defined" exception

This commit is contained in:
Dag Wieers 2012-12-05 18:48:43 +01:00
parent 686d5440ce
commit 655dc289da

2
group
View file

@ -195,7 +195,7 @@ def main():
if group.group_exists():
(rc, out, err) = group.group_del()
if rc != 0:
module.fail_json(name=name, msg=err)
module.fail_json(name=group.name, msg=err)
elif group.state == 'present':
if not group.group_exists():
(rc, out, err) = group.group_add(gid=group.gid, system=group.system)