Commit 809b714b by Richard C Isaacson

Replace mode with octal renaming to mode.

Closes GH-6176

This way for mode we return in an octal format which is immediately usable compared to transforming it later.
parent cca7fd3c
...@@ -99,8 +99,7 @@ def main(): ...@@ -99,8 +99,7 @@ def main():
# back to ansible # back to ansible
d = { d = {
'exists' : True, 'exists' : True,
'mode' : S_IMODE(mode), 'mode' : "%04o" % S_IMODE(mode),
'octal' : "%04o" % S_IMODE(mode),
'isdir' : S_ISDIR(mode), 'isdir' : S_ISDIR(mode),
'ischr' : S_ISCHR(mode), 'ischr' : S_ISCHR(mode),
'isblk' : S_ISBLK(mode), 'isblk' : S_ISBLK(mode),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment