1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/units/parsing/yaml
Adrian Likins c771ab34c7 Add a encode() to AnsibleVaultEncryptedUnicode ()
* 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 

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

py2.6 str.encode() does not take keyword arguments.
2017-01-04 12:17:19 -05:00
..
__init__.py Making the switch to v2 2015-05-03 21:47:26 -05:00
test_dumper.py Implement vault encrypted yaml variables. () 2016-08-23 20:03:11 -04:00
test_loader.py Add error info if tabs are found in the yaml () 2016-11-08 11:43:08 -05:00
test_objects.py Add a encode() to AnsibleVaultEncryptedUnicode () 2017-01-04 12:17:19 -05:00