Fix to user module to use self when calling group_exists
This commit is contained in:
parent
8fba4cc04f
commit
f49d2bc557
1 changed files with 1 additions and 1 deletions
2
user
2
user
|
@ -246,7 +246,7 @@ class User(object):
|
|||
cmd.append(self.uid)
|
||||
|
||||
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)
|
||||
cmd.append('-g')
|
||||
cmd.append(self.group)
|
||||
|
|
Loading…
Reference in a new issue