Permalink
Browse files

Add user and group to file.stats

  • Loading branch information...
thatch45 committed Apr 19, 2012
1 parent aafd947 commit 6a8675d68d72e405405890d8c622a972226ea02c
Showing with 2 additions and 0 deletions.
  1. +2 −0 salt/modules/file.py
View
@@ -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

0 comments on commit 6a8675d

Please sign in to comment.