ansible/test/units
Adrian Likins 22f7ca8c97 Add a encode() to AnsibleVaultEncryptedUnicode (#19840)
* Add a encode() to AnsibleVaultEncryptedUnicode

Without it, calling encode() on it results in a bytestring
of the encrypted !vault-encrypted string.

ssh connection plugin triggers this if ansible_password
is from a var using !vault-encrypted. That path ends up
calling .encode() instead of using the __str__.

Fixes #19795

* Fix str.encode() errors on py2.6

py2.6 str.encode() does not take keyword arguments.

(cherry picked from commit c771ab34c7)
2017-01-04 12:17:38 -05:00
..
cli Have unittests import mock from ansible.compat so they work on py3 without mock installed from pypi 2016-09-15 15:21:17 -07:00
contrib Add a new vmware inventory script backed by pyvmomi (#15967) 2016-05-30 20:41:48 -04:00
errors Relocate use of ERROR to display class, to avoid doubling up 2016-01-19 12:10:39 -05:00
executor Change v2_playbook_on_start logic to positively detect legacy plugins 2016-11-01 07:53:04 -07:00
inventory Changing up how host (in)equality is checked 2015-12-04 12:57:46 -05:00
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 2015-05-28 15:26:03 -05:00
mock Fix bug (#18355) where encrypted inventories fail 18355 (#18373) 2016-11-07 10:15:09 -05:00
module_utils let chdir support relative path in more modules (#16736) 2016-12-22 00:21:30 -08:00
modules Have unittests import mock from ansible.compat so they work on py3 without mock installed from pypi 2016-09-15 15:21:17 -07:00
parsing Add a encode() to AnsibleVaultEncryptedUnicode (#19840) 2017-01-04 12:17:38 -05:00
playbook make hash_params more robust in the face of many corner cases (#18701) 2016-12-05 04:02:21 -08:00
plugins Template "original_task" fields in _process_pending_results 2016-12-21 10:11:59 -06:00
template Merge branch 'threaded_receiver' into devel 2016-09-20 09:18:26 -05:00
utils FEATURE: adding variable serial batches 2016-08-04 15:04:10 -05:00
vars Make ini parsing slightly more robust 2016-10-04 11:25:45 -07:00
__init__.py