now file mode diff shows octal values

pull/11111/head
Brian Coca 9 years ago
parent 7ed4ad23a5
commit 477d632118

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

Loading…
Cancel
Save