1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #2862 from lonerr/freebsd-user

Fixed errors in FreeBSD user manipulations.
This commit is contained in:
Michael DeHaan 2013-05-11 11:07:32 -07:00
commit cb54922bcd

View file

@ -568,7 +568,7 @@ class FreeBsdUser(User):
cmd.append(self.home)
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)
@ -631,7 +631,7 @@ class FreeBsdUser(User):
cmd.append(self.home)
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)
ginfo = self.group_info(self.group)
if info[3] != ginfo[2]: