Skip to content

Commit

Permalink
fix(tmpl): allow strings containing = in ini files
Browse files Browse the repository at this point in the history
* added template clause to handle values with = signs. 
fix #176 (#180)
  • Loading branch information
Yoda-BZH authored Sep 29, 2023
1 parent 3c4e246 commit bb95d69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roles/icingaweb2/templates/ini_template.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
{% elif value is iterable and (value is not string and value is not mapping) %}
{{ option }} = "{{ value | join(', ') }}"
{% elif value is string and "=" in value %}
{{ option }} = "{{ value | quote }}"
{% else %}
{{ option }} = {{ value }}
{% endif %}
Expand Down

0 comments on commit bb95d69

Please sign in to comment.