Skip to content
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

Fix ansible type error comparing 'AnsibleUnicode' and 'int' #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

svenedge
Copy link

I was updating an old ansible from 2.9 to 4.10 and got this error:

An unhandled exception occurred while templating '{{ (elastic_branch < 7) | ternary('jvm.options', 'jvm.options.d/heap.options') }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: Unexpected templating type error occurred on ({{ (elastic_branch < 7) | ternary('jvm.options', 'jvm.options.d/heap.options') }}): '<' not supported between instances of 'AnsibleUnicode' and 'int'

Forcing it to int seems to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant