1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

now file mode diff shows octal values

This commit is contained in:
Brian Coca 2016-01-11 19:47:47 -05:00
parent 7ed4ad23a5
commit 477d632118

View file

@ -881,10 +881,10 @@ class AnsibleModule(object):
if diff is not None:
if 'before' not in diff:
diff['before'] = {}
diff['before']['mode'] = prev_mode
diff['before']['mode'] = oct(prev_mode)
if 'after' not in diff:
diff['after'] = {}
diff['after']['mode'] = mode
diff['after']['mode'] = oct(mode)
if self.check_mode:
return True