mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-13 03:39:11 -07:00
Fix octal output in a few more places (#17250)
Fix filetree lookup plugin for python3 (octal output and selinux API takes native strings)
This commit is contained in:
parent
35a3653dfc
commit
0a39700b36
3 changed files with 33 additions and 17 deletions
|
@ -1013,10 +1013,10 @@ class AnsibleModule(object):
|
|||
if diff is not None:
|
||||
if 'before' not in diff:
|
||||
diff['before'] = {}
|
||||
diff['before']['mode'] = oct(prev_mode)
|
||||
diff['before']['mode'] = '0%03o' % prev_mode
|
||||
if 'after' not in diff:
|
||||
diff['after'] = {}
|
||||
diff['after']['mode'] = oct(mode)
|
||||
diff['after']['mode'] = '0%03o' % mode
|
||||
|
||||
if self.check_mode:
|
||||
return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue