community.general/lib/ansible/plugins
Matt Martz 95e77ac853
Ensure that the src file contents is converted to unicode in diff info (#45744)
* Ensure that the src file contents is converted to unicode in diff info. Fixes #45717

* Fix up and cleanup

* The diff functionality in the callback plugins should have the
  to_text() calls removed since we're now doing it in ActionBase
* catching of UnicodeError and warnings in the callback diff
  functionality from 61d01f549f haven't been
  needed since we switched to to_text so remove them.
* Add a note to ActionBase's diff function giving an example of when the
  diff function will be inaccurate and how to fix it

* Fix callback get_diff() tests

I believe the unittests of callback's get_diff() were wrong.  They were
sending in a list where strings were expected.  Because previous code
was transforming the lists into strings via their repr, the previous
tests did not fail but they would have formatted the test cases output
in an odd way if we had looked at it.
2018-09-20 12:31:48 -05:00
..
action Ensure that the src file contents is converted to unicode in diff info (#45744) 2018-09-20 12:31:48 -05:00
cache Do not try to import simplejson in jsonfile.py (#40983) 2018-06-01 11:24:57 -07:00
callback Ensure that the src file contents is converted to unicode in diff info (#45744) 2018-09-20 12:31:48 -05:00
cliconf Fix diff_ignore_lines option issue for candidate configuration (#45201) 2018-09-06 23:54:56 +05:30
connection Move persistent connections to only use registered variables (#45616) 2018-09-20 09:56:43 -04:00
filter Add the key_name/value_name options to the dict2items filter (#45550) 2018-09-17 15:53:52 -05:00
httpapi Store Authorization header inside HttpApi connection plugin (#45598) 2018-09-13 19:34:30 +05:30
inventory Add a netbox dynamic inventory plugin (#45347) 2018-09-16 15:13:56 +01:00
lookup Enhance the note about fileglob being local (#45398) 2018-09-17 16:00:41 -04:00
netconf Move persistent connections to only use registered variables (#45616) 2018-09-20 09:56:43 -04:00
shell async: use async_dir for the async results file directory (#45461) 2018-09-20 19:37:54 +10:00
strategy If including a file resulted in AnsibleFileNotFound, clarify error message. Fixes #45661 (#45667) 2018-09-18 09:04:33 -05:00
terminal fixing bytes <-> str regexp issue in cloudengine (#45285) 2018-09-12 09:59:42 -04:00
test Added an async 'started' test (like 'finished') (#43445) 2018-08-24 01:29:34 +02:00
vars Allow loading dirs from role defaults/vars (#36357) 2018-04-10 17:14:38 -04:00
__init__.py inventory plugins: add test about config API usage (#41888) 2018-07-19 10:45:45 -07:00
loader.py Catch exceptions when importing plugins, and display an appropriate warning. Fixes #43237 (#43501) 2018-07-31 16:00:04 -05:00