mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fix to user module to use self when calling group_exists
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user