Fix to user module to use self when calling group_exists

pull/1648/head
Stephen Fromm 12 years ago
parent c13f40f516
commit 2fab846f17

@ -246,7 +246,7 @@ class User(object):
cmd.append(self.uid) cmd.append(self.uid)
if self.group is not None: if self.group is not None:
if not user.group_exists(self.group): if not self.group_exists(self.group):
self.module.fail_json(msg="Group %s does not exist" % self.group) self.module.fail_json(msg="Group %s does not exist" % self.group)
cmd.append('-g') cmd.append('-g')
cmd.append(self.group) cmd.append(self.group)

Loading…
Cancel
Save