Added support of returning owner's group name in stat module

reviewable/pr18780/r1
Tongliang Liu 10 years ago
parent db5668b84c
commit e26cbb6ace

@ -66,6 +66,7 @@ import os
import sys
from stat import *
import pwd
import grp
def main():
module = AnsibleModule(
@ -140,6 +141,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

Loading…
Cancel
Save