From 655dc289dab87a7d4a06bc855b60a0f397829680 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Wed, 5 Dec 2012 18:48:43 +0100 Subject: [PATCH] Fix "NameError: global name 'name' is not defined" exception --- group | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/group b/group index 81d7ccee6a6..44b4c783e10 100644 --- a/group +++ b/group @@ -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)