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/lib/ansible/parsing
Adrian Likins 1613a739ad fix decrypted vault utf8 values (#37539)
* Fix errors decrypted non-ascii vault vars

AnsibleVaultEncryptedUnicode was just using b"".decode()
instead of to_text() on the bytestrings returned from
vault.decrypt() and could cause errors on python2
if non-ascii since decode() defaults to ascii.
Use to_text() to default to decoding utf-8.

add intg and unit tests for value of vaulted vars
being non-ascii utf8

based on https://github.com/ansible/ansible/issues/37258

Fixes #37258

* yamllint fixups
2018-05-24 23:22:46 -04:00
..
utils Enabled unsafe and vault in JSON (#38759) 2018-05-09 14:01:51 -04:00
vault vault: check dir existence before creating a file (#40010) 2018-05-11 19:29:44 +02:00
yaml fix decrypted vault utf8 values (#37539) 2018-05-24 23:22:46 -04:00
__init__.py Fix typo in lib/ansible/parsing/__init__.py (#16761) 2016-07-20 18:03:50 -04:00
ajson.py Enabled unsafe and vault in JSON (#38759) 2018-05-09 14:01:51 -04:00
dataloader.py allow dataloader to use descriptors (#40627) 2018-05-24 12:29:37 +10:00
metadata.py Guard against assignments that are not ast.Name in docs parsing (#35513) 2018-01-30 12:56:16 -06:00
mod_args.py Optimizations in mod_args parsing 2018-03-26 10:08:38 -07:00
plugin_docs.py Fix encoding issue when parsing plugin examples 2018-05-08 12:21:52 -07:00
quoting.py ansible/parsing: PEP8 compliancy (#24701) 2017-05-18 18:41:00 +01:00
splitter.py Fix a unicodeerror so that we get the correct error message (#34058) 2017-12-19 16:26:30 -06:00