mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-05 04:42:48 +00:00
Return the octal mode of a file instead of decimal.
This commit is contained in:
@@ -58,7 +58,7 @@ def add_path_info(kwargs):
|
||||
kwargs['user'] = user
|
||||
kwargs['group'] = group
|
||||
st = os.stat(path)
|
||||
kwargs['mode'] = stat.S_IMODE(st[stat.ST_MODE])
|
||||
kwargs['mode'] = oct(stat.S_IMODE(st[stat.ST_MODE]))
|
||||
# secontext not yet supported
|
||||
if os.path.islink(path):
|
||||
kwargs['state'] = 'link'
|
||||
|
||||
Reference in New Issue
Block a user