1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix vaulted vars templating (#24312)

Use the default repr of AnsibleVaultEncryptedUnicode.data instead
of a custom one, since jinja templating ends up using the repr()
results.

Fixes #23846, #24175
This commit is contained in:
Adrian Likins 2017-05-05 11:07:50 -04:00 committed by GitHub
parent 0573b8bcd2
commit 3840119bc7

View file

@ -111,7 +111,7 @@ class AnsibleVaultEncryptedUnicode(yaml.YAMLObject, AnsibleUnicode):
self._ciphertext = value
def __repr__(self):
return 'AnsibleVaultEncryptedUnicode(%s)' % self._ciphertext
return repr(self.data)
# Compare a regular str/text_type with the decrypted hypertext
def __eq__(self, other):