Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Commit

Permalink
[minor] release: templates: ensure port is of int type (#180)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Popov <[email protected]>
  • Loading branch information
paulfantom and xpacm authored Oct 31, 2019
1 parent 30f30df commit 663fe19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/ldap.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ verbose_logging = {{ 'true' if grafana_ldap.verbose_logging else 'false' }}

[[servers]]
{% for k,v in grafana_ldap.servers.items() if k != 'attributes' %}
{% if v in [True, False] %}
{% if k == 'port' %}
{{ k }} = {{ v | int }}
{% elif v in [True, False] %}
{{ k }} = {{ 'true' if v else 'false' }}
{% else %}
{{ k }} = {{ v | to_nice_json }}
Expand Down

0 comments on commit 663fe19

Please sign in to comment.