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:
parent
0573b8bcd2
commit
3840119bc7
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue