mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-02 15:21:25 -07:00
So far, when a 'diff' dict is returned with module results, it is checked for 'before' and 'after' texts, which are processed in _get_diff() by python difflib. This generates the changes to display when CLI users specify --diff. However, some modules will generate changes that cannot easily be expressed in a conventional diff. One example is the output of the synchronize module, which presents changed files in a common log format as in `rsync --itemize-changes`. Add a check for a diff['prepared'] key, which can contain prepared diff text from modules. |
||
---|---|---|
.. | ||
__init__.py | ||
context_demo.py | ||
default.py | ||
hipchat.py | ||
log_plays.py | ||
logentries.py | ||
mail.py | ||
minimal.py | ||
oneline.py | ||
osx_say.py | ||
profile_tasks.py | ||
skippy.py | ||
syslog_json.py | ||
timer.py | ||
tree.py |