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
pull/24334/head
Adrian Likins 8 years ago committed by GitHub
parent 0573b8bcd2
commit 3840119bc7

@ -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):

Loading…
Cancel
Save