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

Commit 663fe19

Browse files
paulfantomxpacm
andauthored
[minor] release: templates: ensure port is of int type (#180)
Co-authored-by: Alex Popov <[email protected]>
1 parent 30f30df commit 663fe19

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/ldap.toml.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ verbose_logging = {{ 'true' if grafana_ldap.verbose_logging else 'false' }}
66

77
[[servers]]
88
{% for k,v in grafana_ldap.servers.items() if k != 'attributes' %}
9-
{% if v in [True, False] %}
9+
{% if k == 'port' %}
10+
{{ k }} = {{ v | int }}
11+
{% elif v in [True, False] %}
1012
{{ k }} = {{ 'true' if v else 'false' }}
1113
{% else %}
1214
{{ k }} = {{ v | to_nice_json }}

0 commit comments

Comments
 (0)