-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
template (the lookup plugin) through to_nice_json adds double-quote #76443
Comments
Files identified in the description: If these files are incorrect, please update the |
Caused by 84e473a |
notes:
|
|
please use template instead of copy, |
I'm actually unsure how we ended up with this construct (we are very well aware of the Thanks @bcoca for the informations (and the If the string output is the expected behavior, this issue can be closed Have a great day |
Closing by request |
Summary
the
to_nice_json
filter changed behavior and now return a string instead of a (json) dict(ie. it add double quotes around the value, and escape line returns and double quotes within)
ie. :
(prior to ansible-5.0.0 , the 3 items gave the very same output as the 3rd iteration)
Issue Type
Bug Report
Component Name
template lookup plugin
Ansible Version
Configuration
OS / Environment
archlinux (but distribution seem irrelevant)
Steps to Reproduce
example playbook
demo json template
Expected Results
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: