ansible/test/units/parsing/yaml
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
..
__init__.py
test_dumper.py Implement vault encrypted yaml variables. (#16274) 2016-08-23 20:03:11 -04:00
test_loader.py Move uses of to_bytes, to_text, to_native to use the module_utils version (#17423) 2016-09-06 22:54:17 -07:00
test_objects.py Add a encode() to AnsibleVaultEncryptedUnicode (#19840) 2017-01-04 12:17:38 -05:00