diff --git a/lib/ansible/modules/files/stat.py b/lib/ansible/modules/files/stat.py index fbf2d4cb8f..ee3998f5f7 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