Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryTheDevOpsGuy authored Dec 10, 2022
1 parent 89066b2 commit d235691
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/config_tmpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
declare -A NOTIFICATIONS=(
{% for item in notifications %}
{% if item.type == 'slack' %}
[{{ item.id }}]="slack|{{ item.token }}|{{ item.channel }}|{% for mentions in item.mentions %}{{ mentions }}{% if not loop.last %} {% endif %}{% endfor %}"
[{{ item.id }}]="slack|{{ item.token }}|{{ item.channel }}|{% for mentions in item.mentions|default('[]') %}{{ mentions }}{% if not loop.last %} {% endif %}{% endfor %}"
{% elif item.type == 'telegram' %}
[{{ item.id }}]="telegram|{{ item.bottoken }}|{{ item.groupid }}|{% for mentions in item.mentions %}{{ mentions }}{% if not loop.last %} {% endif %}{% endfor %}"
[{{ item.id }}]="telegram|{{ item.bottoken }}|{{ item.groupid }}|{% for mentions in item.mentions|default('[]') %}{{ mentions }}{% if not loop.last %} {% endif %}{% endfor %}"
{% elif item.type == 'sendgrid' %}
[{{ item.id }}]="sendgrid|{{ item.token }}|{{ item.sender }}|{% for email in item.email|default('[]') %}{{ email }}{% if not loop.last %} {% endif %}{% endfor %}"
{% endif %}
Expand Down

0 comments on commit d235691

Please sign in to comment.