Skip to content

Commit

Permalink
Add user and group to file.stats
Browse files Browse the repository at this point in the history
  • Loading branch information
thatch45 committed Apr 19, 2012
1 parent aafd947 commit 6a8675d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions salt/modules/file.py
Expand Up @@ -595,6 +595,8 @@ def stats(path, hash_type='md5', follow_symlink=False):
ret['inode'] = pstat.st_ino ret['inode'] = pstat.st_ino
ret['uid'] = pstat.st_uid ret['uid'] = pstat.st_uid
ret['gid'] = pstat.st_gid 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['atime'] = pstat.st_atime
ret['mtime'] = pstat.st_mtime ret['mtime'] = pstat.st_mtime
ret['ctime'] = pstat.st_ctime ret['ctime'] = pstat.st_ctime
Expand Down

0 comments on commit 6a8675d

Please sign in to comment.