Skip to content

Commit

Permalink
casting value to string prevents jninja error
Browse files Browse the repository at this point in the history
  • Loading branch information
sol1-matt committed May 17, 2024
1 parent 829ff4e commit 5e74051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/icingaweb2/templates/ini_template.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[{{ section }}]
{% for option, value in options.items() %}
{% if value is number %}
{{ option }} = "{{ value }}"
{{ option }} = "{{ value | string }}"
{% elif value is iterable and (value is not string and value is not mapping) %}
{{ option }} = "{{ value | join(', ') }}"
{% elif ( value is string and ( "=" in value or "!" in value ) )%}
Expand Down

0 comments on commit 5e74051

Please sign in to comment.