community.general/lib/ansible/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 Fixing up jsonify and adding unit tests 2016-02-29 14:51:23 -05:00
vault minor spelling changes 2016-12-13 13:51:13 -05:00
yaml Add a encode() to AnsibleVaultEncryptedUnicode (#19840) 2017-01-04 12:17:19 -05:00
__init__.py Fix typo in lib/ansible/parsing/__init__.py (#16761) 2016-07-20 18:03:50 -04:00
dataloader.py Fix regression in search path behaviour 2016-12-14 10:33:14 -05:00
mod_args.py adds new module net_command for network devices (#19468) 2016-12-19 11:21:37 -05:00
quoting.py Break apart a looped dependency to show a warning when parsing playbooks 2015-10-27 12:39:42 -07:00
splitter.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