mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-02 03:12:46 +00:00
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.
This commit is contained in:
@@ -99,8 +99,7 @@ def main():
|
||||
# back to ansible
|
||||
d = {
|
||||
'exists' : True,
|
||||
'mode' : S_IMODE(mode),
|
||||
'octal' : "%04o" % S_IMODE(mode),
|
||||
'mode' : "%04o" % S_IMODE(mode),
|
||||
'isdir' : S_ISDIR(mode),
|
||||
'ischr' : S_ISCHR(mode),
|
||||
'isblk' : S_ISBLK(mode),
|
||||
|
||||
Reference in New Issue
Block a user