Merge pull request #17 from cooniur/devel

Added support of returning owner's group name in stat module
This commit is contained in:
Brian Coca 2014-12-01 12:02:46 -05:00
commit 4035d24313

View file

@ -73,6 +73,7 @@ import os
import sys
from stat import *
import pwd
import grp
def main():
module = AnsibleModule(
@ -157,6 +158,9 @@ def main():
pw = pwd.getpwuid(st.st_uid)
d['pw_name'] = pw.pw_name
grp_info = grp.getgrgid(pw.pw_gid)
d['gr_name'] = grp_info.gr_name
except:
pass