Skip to content

Commit ee04423

Browse files
authored
Merge pull request #4 from cloudalchemy/superq/quote
Quote config template items
2 parents 8224205 + 2d1ca6b commit ee04423

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

templates/alertmanager-irc-relay-config.yml.j2

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ irc_host: {{ alertmanager_irc_relay_irc_host }}
1111
irc_port: {{ alertmanager_irc_relay_irc_port }}
1212

1313
# Use this IRC nickname.
14-
irc_nickname: {{ alertmanager_irc_relay_irc_nickname }}
14+
irc_nickname: {{ alertmanager_irc_relay_irc_nickname | quote }}
1515
# Password used to identify with NickServ
16-
irc_nickname_password: {{ alertmanager_irc_relay_irc_nickname_password }}
16+
irc_nickname_password: {{ alertmanager_irc_relay_irc_nickname_password | quote }}
1717
# Use this IRC real name
18-
irc_realname: {{ alertmanager_irc_relay_irc_realname }}
18+
irc_realname: {{ alertmanager_irc_relay_irc_realname | quote}}
1919

2020
# Optionally pre-join certain channels.
2121
#
@@ -34,7 +34,7 @@ notice_once_per_alert_group: {{ alertmanager_irc_relay_notice_once_per_alert_gro
3434
# Define how IRC messages should be formatted.
3535
#
3636
# The formatting is based on golang's text/template.
37-
notice_template: {{ alertmanager_irc_relay_notice_template }}
37+
notice_template: {{ alertmanager_irc_relay_notice_template | quote }}
3838
# Note: When sending only one notice per alert group the default
3939
# notice_template is set to
4040
# "Alert {% raw %}{{ .GroupLabels.alertname }} for {{ .GroupLabels.job }} is {{ .Status }}{% endraw %}"

0 commit comments

Comments
 (0)