mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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
This commit is contained in:
parent
2dde45cea9
commit
a6643160c5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue