ansible/test/units/parsing
Adrian Likins c771ab34c7 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.
2017-01-04 12:17:19 -05:00
..
utils Fix unit test dirs to match code under test. 2016-11-10 18:59:07 -08:00
vault Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
yaml Add a encode() to AnsibleVaultEncryptedUnicode (#19840) 2017-01-04 12:17:19 -05:00
__init__.py Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
test_dataloader.py Fix unit test dirs to match code under test. 2016-11-10 18:59:07 -08:00
test_mod_args.py
test_splitter.py New unit tests for #13630 fix 2016-03-28 15:54:07 -04:00
test_unquote.py