From 922a1efbc00be6bd10aff634a174d55e46c8746e Mon Sep 17 00:00:00 2001 From: Scott Sturdivant Date: Thu, 23 May 2013 13:43:23 -0600 Subject: [PATCH] Fixes #2924: User creation always reports 'changed' --- library/system/user | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/system/user b/library/system/user index 1fa114f8a87..de153c3f40d 100644 --- a/library/system/user +++ b/library/system/user @@ -395,7 +395,7 @@ class User(object): groups = [] info = self.get_pwd_info() for group in grp.getgrall(): - if self.name in group[3] and info[3] != group[2]: + if self.name in group.gr_mem and info[3] == group.gr_gid: groups.append(group[0]) return groups