From a6643160c5436b89d27c0befd0f35bf10c667ae8 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Wed, 25 Mar 2015 08:33:19 -0700 Subject: [PATCH] Fix stat code to return name of group owning the file rather than name of group that the file's owner belongs to. Followup to #17 --- lib/ansible/modules/files/stat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/files/stat.py b/lib/ansible/modules/files/stat.py index fbf2d4cb8f6..ee3998f5f75 100644 --- a/lib/ansible/modules/files/stat.py +++ b/lib/ansible/modules/files/stat.py @@ -342,7 +342,7 @@ def main(): d['pw_name'] = pw.pw_name - grp_info = grp.getgrgid(pw.pw_gid) + grp_info = grp.getgrgid(st.st_gid) d['gr_name'] = grp_info.gr_name except: pass