-
-
Notifications
You must be signed in to change notification settings - Fork 434
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
Extra + in the {% endfor +%} block causing playbook to fail. #488
Comments
Oh good, it's not just me. I was just starting to debug it to see where the error was. |
@guillaumeldc Thanks! here is a recent commit that added '+' to 'endfor': de4d400#diff-6cd5a640c38bf41a44e6115d2ab9d552e4cc4f41fbd78ac2a3ff9d2faee706a4 |
Until I can reproduce the problem with |
On the contrary, without using '+' (
|
And current code (
|
So I'm not sure if this part of the code needs fixing. Please give more information about your error. |
Hi @vitabaks sorry for the short (no) description in filing the error.
Unless my knowledges in Jinja templating are already outdated, the "+" doesn't belong there. This is the code I'm talking about:
|
Removing the "+" corrected my issue and the playbook ran smoothly. |
@guillaumeldc Ok, I removed the '+' and added an empty string before the condition for the variable 'patroni_etcd_username' to avoid formatting issues. Could you test this? PR: #490 |
https://github.com/vitabaks/postgresql_cluster/blob/c030eea4c0b724830c9712a84f3e3d351db9bc78/roles/patroni/templates/patroni.yml.j2#L38C135-L38C136
The text was updated successfully, but these errors were encountered: