-
Notifications
You must be signed in to change notification settings - Fork 23.8k
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
The quote filter fails on integers #33260
Comments
Files identified in the description: If these files are inaccurate, please update the |
If this is considered intended behavior, then at least the error message should be improved. When this failed for me the first time, it was in a task with 14 quoted variables. Took a while to figure out where exactly the problem was. |
That is a pretty terrible error message. But not sure it can be improved much. The hidden traceback:
The change in #33272 to always convert to text seems reasonable for this case and should avoid that error as well. |
ISSUE TYPE
Bug Report
COMPONENT NAME
shell
ANSIBLE VERSION
2.5.0.34173.3d63ecb6f3-1
CONFIGURATION
DEFAULT_STDOUT_CALLBACK(/etc/ansible/ansible.cfg) = debug
OS / ENVIRONMENT
N/A
SUMMARY
I was expecting the
quote
filter to work with integers, without an explicit cast. It does not.STEPS TO REPRODUCE
EXPECTED RESULTS
Success.
ACTUAL RESULTS
Failure.
The text was updated successfully, but these errors were encountered: