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 self._ciphertext = value
def __repr__(self): def __repr__(self):
return 'AnsibleVaultEncryptedUnicode(%s)' % self._ciphertext return repr(self.data)
# Compare a regular str/text_type with the decrypted hypertext # Compare a regular str/text_type with the decrypted hypertext
def __eq__(self, other): def __eq__(self, other):