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

Fix file state=touch not returning diff information

Fixes #41755
This commit is contained in:
Toshio Kuratomi 2018-06-20 13:57:48 -07:00
parent 58d857f235
commit 8bd245a6a2
2 changed files with 5 additions and 1 deletions

View file

@ -0,0 +1,4 @@
---
bugfixes:
- file module - The touch subcommand had its diff output broken during the
2.6.x development cycle. This is now fixed (https://github.com/ansible/ansible/issues/41755)

View file

@ -370,7 +370,7 @@ def execute_touch(path, follow):
raise
# Unfortunately, touch always changes the file because it updates file's timestamp
return {'dest': path, 'changed': True}
return {'dest': path, 'changed': True, 'diff': diff}
def ensure_file_attributes(path, follow):