From 75be1835a5647c6b9eb03d4aaa7752978c409026 Mon Sep 17 00:00:00 2001 From: Romeo Theriault Date: Mon, 12 Nov 2012 11:13:51 -1000 Subject: [PATCH] minor linux user module fixups --- user | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user b/user index eb248e6fa27..18e15cb42e0 100755 --- a/user +++ b/user @@ -296,7 +296,7 @@ class User(object): if self.group is not None: if not self.group_exists(self.group): - module.fail_json(msg="Group %s does not exist" % self.group) + self.module.fail_json(msg="Group %s does not exist" % self.group) ginfo = self.group_info(self.group) if info[3] != ginfo[2]: cmd.append('-g') @@ -307,7 +307,7 @@ class User(object): groups = self.groups.split(',') for g in groups: if not self.group_exists(g): - module.fail_json(msg="Group %s does not exist" % (g)) + self.module.fail_json(msg="Group %s does not exist" % (g)) group_diff = set(sorted(current_groups)).symmetric_difference(set(sorted(groups))) groups_need_mod = False