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

actually use the read source contents for the diff

This commit is contained in:
Brian Coca 2015-08-16 01:42:07 -04:00
parent 45cebd283f
commit 13c91ef9d4

View file

@ -541,7 +541,7 @@ class ActionBase:
diff['src_larger'] = C.MAX_FILE_SIZE_FOR_DIFF
else:
diff['after_header'] = source
diff['after'] = src.read()
diff['after'] = src_contents
else:
self._display.debug("source of file passed in")
diff['after_header'] = 'dynamically generated'