Skip to content

Conversation

jovial
Copy link
Contributor

@jovial jovial commented Feb 15, 2023

You will see:

ERROR! Unexpected Exception, this is probably a bug: invalid literal for int() with base 10: ''

This is because the default filter only works on undefined variables and the lookup returns an empty string. We can use the boolean parameter on the default filter, see:

https://jinja.palletsprojects.com/en/3.1.x/templates/#jinja-filters.default

You will see:

```
ERROR! Unexpected Exception, this is probably a bug: invalid literal for int() with base 10: ''
```

This is because the default filter only works on undefined variables and the lookup returns an empty string. We can
use the boolean parameter on the default filter, see:

https://jinja.palletsprojects.com/en/3.1.x/templates/#jinja-filters.default
@jovial jovial requested a review from a team as a code owner February 15, 2023 14:32
@jovial jovial added the wallaby label Feb 15, 2023
@markgoddard markgoddard merged commit fbe3f24 into stackhpc/wallaby Feb 16, 2023
@markgoddard markgoddard deleted the bugfix/wallaby/ansible-serial-default branch February 16, 2023 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants