community.general/lib/ansible/plugins/action
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
..
__init__.py Ensure that the src file contents is converted to unicode in diff info (#45744) 2018-09-20 12:31:48 -05:00
add_host.py add_host: check if name or hostname arg is provided 2018-02-12 15:24:45 -05:00
aireos.py Support setting persistent command timeout per task basis (#42847) 2018-07-20 10:04:53 +05:30
aireos_config.py Network *_config action plugin updates (#43838) 2018-08-08 15:15:08 -04:00
aruba.py Support setting persistent command timeout per task basis (#42847) 2018-07-20 10:04:53 +05:30
aruba_config.py Network *_config action plugin updates (#43838) 2018-08-08 15:15:08 -04:00
asa.py Let called functions use `method` keyword (#43086) 2018-07-22 15:26:44 -04:00
asa_config.py Network *_config action plugin updates (#43838) 2018-08-08 15:15:08 -04:00
assemble.py Rename original_basename parameter in various file-related modules 2018-05-17 15:24:56 -07:00
assert.py Ensure action plugins accept only valid args (#44779) 2018-08-30 09:40:36 -04:00
async_status.py async: use async_dir for the async results file directory (#45461) 2018-09-20 19:37:54 +10:00
aws_s3.py Fix async for aws_s3 - fixes #40281 (#40826) 2018-06-07 15:09:22 -04:00
bigip.py Support setting persistent command timeout per task basis (#42847) 2018-07-20 10:04:53 +05:30
bigiq.py Support setting persistent command timeout per task basis (#42847) 2018-07-20 10:04:53 +05:30
ce.py Support setting persistent command timeout per task basis (#42847) 2018-07-20 10:04:53 +05:30
ce_config.py Network *_config action plugin updates (#43838) 2018-08-08 15:15:08 -04:00
ce_template.py First bit of fixing temporary to have one source of truth (#35747) 2018-02-07 15:11:36 -08:00
cli_command.py cli_command module (#42916) 2018-08-06 10:41:57 -04:00
cli_config.py Add cli_config module (#42413) 2018-08-14 13:52:15 +05:30
cnos.py Support setting persistent command timeout per task basis (#42847) 2018-07-20 10:04:53 +05:30
cnos_config.py Network *_config action plugin updates (#43838) 2018-08-08 15:15:08 -04:00
command.py Normalize usage of temp and tmp on tmp (#36221) 2018-02-15 09:01:02 -08:00
copy.py ensure copy action plugin returns an invocation in result (#41426) 2018-06-20 14:35:47 -04:00
debug.py Ensure action plugins accept only valid args (#44779) 2018-08-30 09:40:36 -04:00
dellos6.py Support setting persistent command timeout per task basis (#42847) 2018-07-20 10:04:53 +05:30
dellos6_config.py Network *_config action plugin updates (#43838) 2018-08-08 15:15:08 -04:00
dellos9.py Support setting persistent command timeout per task basis (#42847) 2018-07-20 10:04:53 +05:30
dellos9_config.py Network *_config action plugin updates (#43838) 2018-08-08 15:15:08 -04:00
dellos10.py Support setting persistent command timeout per task basis (#42847) 2018-07-20 10:04:53 +05:30
dellos10_config.py Network *_config action plugin updates (#43838) 2018-08-08 15:15:08 -04:00
edgeos_config.py EdgeOS module improvements (#39530) 2018-05-22 12:22:18 -04:00
enos.py Support setting persistent command timeout per task basis (#42847) 2018-07-20 10:04:53 +05:30
enos_config.py Lenovo typofix (#40865) 2018-05-30 15:23:26 +05:30
eos.py Support setting persistent command timeout per task basis (#42847) 2018-07-20 10:04:53 +05:30
eos_config.py First bit of fixing temporary to have one source of truth (#35747) 2018-02-07 15:11:36 -08:00
exos_config.py new module exos_config (#43902) 2018-08-15 14:56:50 -07:00
fail.py Ensure action plugins accept only valid args (#44779) 2018-08-30 09:40:36 -04:00
fetch.py 2.8 Core Deprecation Removal (#45232) 2018-09-10 15:05:52 -05:00
fortios_config.py First bit of fixing temporary to have one source of truth (#35747) 2018-02-07 15:11:36 -08:00
group_by.py Ensure action plugins accept only valid args (#44779) 2018-08-30 09:40:36 -04:00
include_vars.py include_vars: fix checking for a string in ignore_files 2018-09-14 11:18:00 -04:00
ios.py Don't close persistent connection socket on command timeout (#43071) 2018-07-23 07:07:06 +05:30
ios_config.py First bit of fixing temporary to have one source of truth (#35747) 2018-02-07 15:11:36 -08:00
iosxr.py Support setting persistent command timeout per task basis (#42847) 2018-07-20 10:04:53 +05:30
iosxr_config.py Network *_config action plugin updates (#43838) 2018-08-08 15:15:08 -04:00
ironware.py Ironware: Deprecate provider, support network_cli (#43285) 2018-07-27 12:51:45 +05:30
ironware_config.py Network *_config action plugin updates (#43838) 2018-08-08 15:15:08 -04:00
junos.py Support setting persistent command timeout per task basis (#42847) 2018-07-20 10:04:53 +05:30
junos_config.py Network *_config action plugin updates (#43838) 2018-08-08 15:15:08 -04:00
net_banner.py First bit of fixing temporary to have one source of truth (#35747) 2018-02-07 15:11:36 -08:00
net_base.py Support setting persistent command timeout per task basis (#42847) 2018-07-20 10:04:53 +05:30
net_config.py Network *_config action plugin updates (#43838) 2018-08-08 15:15:08 -04:00
net_get.py Idempotency for net_get and net_put modules (#42307) 2018-07-05 20:15:25 +05:30
net_interface.py First bit of fixing temporary to have one source of truth (#35747) 2018-02-07 15:11:36 -08:00
net_l2_interface.py First bit of fixing temporary to have one source of truth (#35747) 2018-02-07 15:11:36 -08:00
net_l3_interface.py First bit of fixing temporary to have one source of truth (#35747) 2018-02-07 15:11:36 -08:00
net_linkagg.py First bit of fixing temporary to have one source of truth (#35747) 2018-02-07 15:11:36 -08:00
net_lldp.py First bit of fixing temporary to have one source of truth (#35747) 2018-02-07 15:11:36 -08:00
net_lldp_interface.py First bit of fixing temporary to have one source of truth (#35747) 2018-02-07 15:11:36 -08:00
net_logging.py First bit of fixing temporary to have one source of truth (#35747) 2018-02-07 15:11:36 -08:00
net_ping.py First bit of fixing temporary to have one source of truth (#35747) 2018-02-07 15:11:36 -08:00
net_put.py ios_file: Don't leave leftover files behind (#42622) 2018-07-12 12:26:14 +05:30
net_static_route.py First bit of fixing temporary to have one source of truth (#35747) 2018-02-07 15:11:36 -08:00
net_system.py First bit of fixing temporary to have one source of truth (#35747) 2018-02-07 15:11:36 -08:00
net_user.py First bit of fixing temporary to have one source of truth (#35747) 2018-02-07 15:11:36 -08:00
net_vlan.py First bit of fixing temporary to have one source of truth (#35747) 2018-02-07 15:11:36 -08:00
net_vrf.py First bit of fixing temporary to have one source of truth (#35747) 2018-02-07 15:11:36 -08:00
netconf.py Update netconf_config module (#44379) 2018-08-21 20:41:18 +05:30
netconf_config.py Update netconf_config module (#44379) 2018-08-21 20:41:18 +05:30
normal.py Normalize usage of temp and tmp on tmp (#36221) 2018-02-15 09:01:02 -08:00
nos_config.py new nos_config module (#44140) 2018-08-21 10:02:40 -07:00
nxos.py Support setting persistent command timeout per task basis (#42847) 2018-07-20 10:04:53 +05:30
nxos_config.py Network *_config action plugin updates (#43838) 2018-08-08 15:15:08 -04:00
onyx_config.py Network *_config action plugin updates (#43838) 2018-08-08 15:15:08 -04:00
ops_config.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00
package.py Normalize usage of temp and tmp on tmp (#36221) 2018-02-15 09:01:02 -08:00
patch.py Fix the script and patch plugins tempfile ownership 2018-02-19 13:07:58 -08:00
pause.py Ensure action plugins accept only valid args (#44779) 2018-08-30 09:40:36 -04:00
raw.py First bit of fixing temporary to have one source of truth (#35747) 2018-02-07 15:11:36 -08:00
reboot.py Make sure strings are bytes for Py2/3 compatibility (#45746) 2018-09-18 10:10:47 -04:00
script.py win_script: add support for become and centralise exec wrapper builder (#45582) 2018-09-13 08:50:13 +10:00
service.py Mass nuke deprecated items that are easily removed. ci_complete (#44320) 2018-08-20 16:26:10 -05:00
set_fact.py Don't perform string to bool conversion in set_fact when jinja2 native types is enabled (#43425) 2018-07-30 15:44:38 -05:00
set_stats.py Ensure action plugins accept only valid args (#44779) 2018-08-30 09:40:36 -04:00
shell.py First bit of fixing temporary to have one source of truth (#35747) 2018-02-07 15:11:36 -08:00
slxos_config.py add missing slxos_config action plugin (#44103) 2018-08-21 10:03:36 -07:00
sros.py Support setting persistent command timeout per task basis (#42847) 2018-07-20 10:04:53 +05:30
sros_config.py Network *_config action plugin updates (#43838) 2018-08-08 15:15:08 -04:00
synchronize.py Use _remote_is_local=True for local connection in synchronize (#40833) 2018-05-30 13:28:11 -07:00
telnet.py Fix telnet action plugin type error (#43609) 2018-08-03 09:50:14 -04:00
template.py Allow specifying the output encoding in the template module (#42171) 2018-07-25 13:10:40 -07:00
unarchive.py Rename original_basename parameter in various file-related modules 2018-05-17 15:24:56 -07:00
uri.py Add src parameter for uri module that can be used in place of body. Supports binary files (#33689) 2018-05-31 11:43:00 -05:00
vyos.py Support setting persistent command timeout per task basis (#42847) 2018-07-20 10:04:53 +05:30
vyos_config.py Fix edgeos_config: {backup: yes} (#37619) 2018-03-21 12:48:09 -04:00
wait_for_connection.py Ensure action plugins accept only valid args (#44779) 2018-08-30 09:40:36 -04:00
win_copy.py Rename original_basename parameter in various file-related modules 2018-05-17 15:24:56 -07:00
win_reboot.py Ensure action plugins accept only valid args (#44779) 2018-08-30 09:40:36 -04:00
win_template.py Windows: Use the correct newline sequence for the platform (#21846) 2017-03-23 19:47:10 -07:00
win_updates.py win_updates fix when win_updates is run with async (#41756) 2018-06-20 14:52:24 -07:00
yum.py YUM4/DNF compatibility via yum action plugin (#44322) 2018-08-27 10:17:47 -07:00