From 6a8675d68d72e405405890d8c622a972226ea02c Mon Sep 17 00:00:00 2001 From: Thomas S Hatch Date: Thu, 19 Apr 2012 11:29:03 -0600 Subject: [PATCH] Add user and group to file.stats --- salt/modules/file.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/salt/modules/file.py b/salt/modules/file.py index 14507d295713..b7de8d075f9c 100644 --- a/salt/modules/file.py +++ b/salt/modules/file.py @@ -595,6 +595,8 @@ def stats(path, hash_type='md5', follow_symlink=False): ret['inode'] = pstat.st_ino ret['uid'] = pstat.st_uid ret['gid'] = pstat.st_gid + ret['group'] = gid_to_group(pstat.st_gid) + ret['user'] = uid_to_user(pstat.st_uid) ret['atime'] = pstat.st_atime ret['mtime'] = pstat.st_mtime ret['ctime'] = pstat.st_ctime