community.general/lib/ansible/plugins
Tobias Wolf 5b293b56d6 Handle the key 'prepared' in the 'diff' result from modules
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.
2016-01-26 09:29:37 +01:00
..
action For synchronize, fix sudo to execute on the remote end of the connection 2016-01-25 19:33:31 -08:00
cache substitute tilde and env vars before storing C.CACHE_PLUGIN_CONNECTION as instance attribute 2015-11-12 16:52:02 +01:00
callback Handle the key 'prepared' in the 'diff' result from modules 2016-01-26 09:29:37 +01:00
connection python3 doesn't have raw explicit-unicode literals. Workaround it with a raw native string that we make unicode in py2. 2016-01-25 19:46:57 -08:00
filter md5 now uses smaller salt 2016-01-14 10:24:34 -05:00
inventory Bundle a new version of python-six for compatibility along with some code to make it easy for distributions to override the bunndled copy if they have a new enough version. 2015-10-16 08:21:28 -07:00
lookup corrected host/group match in inventory_hostnames 2016-01-20 18:32:39 -05:00
shell More fixes for unicode handling in the connection plugins. 2016-01-06 15:19:40 -08:00
strategy Use templated handler name during callback 2016-01-23 09:25:50 -05:00
test test aliases to enable gramatical consistancy 2016-01-14 12:29:02 -05:00
vars
__init__.py Fix non-module plugins picking up files that did not end in .py. 2015-11-19 09:39:37 -08:00