From 2a8ef8a87cb2d1afec2abe5e5a17cf03615e51be Mon Sep 17 00:00:00 2001 From: lonerr Date: Wed, 8 May 2013 13:03:18 +0400 Subject: [PATCH] Fixed errors in FreeBSD user manipulations. --- system/user | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/user b/system/user index 5687c0d5b8f..9cf665965c3 100644 --- a/system/user +++ b/system/user @@ -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]: