Add a YAML representer for NativeJinjaText (#77282)

Fixes #77280
pull/77303/head
Martin Krizek 3 years ago committed by GitHub
parent d8687bd015
commit c9db73f04e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- Add a YAML representer for ``NativeJinjaText``

@ -24,7 +24,7 @@ import yaml
from ansible.module_utils.six import text_type, binary_type
from ansible.module_utils.common.yaml import SafeDumper
from ansible.parsing.yaml.objects import AnsibleUnicode, AnsibleSequence, AnsibleMapping, AnsibleVaultEncryptedUnicode
from ansible.utils.unsafe_proxy import AnsibleUnsafeText, AnsibleUnsafeBytes, NativeJinjaUnsafeText
from ansible.utils.unsafe_proxy import AnsibleUnsafeText, AnsibleUnsafeBytes, NativeJinjaUnsafeText, NativeJinjaText
from ansible.template import AnsibleUndefined
from ansible.vars.hostvars import HostVars, HostVarsVars
from ansible.vars.manager import VarsWithSources
@ -115,3 +115,8 @@ AnsibleDumper.add_representer(
NativeJinjaUnsafeText,
represent_unicode,
)
AnsibleDumper.add_representer(
NativeJinjaText,
represent_unicode,
)

Loading…
Cancel
Save