From 97cc259d8c48722b3cd55101ac226d5bb5dd59fe Mon Sep 17 00:00:00 2001 From: Mark Theunissen Date: Tue, 24 Jul 2012 09:26:45 -0500 Subject: [PATCH] Undefined variable error --- library/user | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/user b/library/user index 310e61cd09d..ce0a88729c9 100755 --- a/library/user +++ b/library/user @@ -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])