mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00: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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user