Files
fedora-infra_ansible/roles/check-compose/templates/check-compose.conf.j2
Adam Williamson 5e8167416d check-compose: fix dict unpacking syntax
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-06-24 19:13:59 -07:00

37 lines
1.0 KiB
Django/Jinja

[main]
{% if checkcompose_server is defined %}
server: {{ checkcompose_server }}
{% endif %}
{% if checkcompose_url is defined %}
url: {{ checkcompose_url }}
{% endif %}
{% if checkcompose_greenwaveurl is defined %}
greenwave-url: {{ checkcompose_greenwaveurl }}
{% endif %}
{% if checkcompose_wait is defined %}
wait: {{ checkcompose_wait }}
{% endif %}
{% if checkcompose_emailfrom is defined %}
email-from: {{ checkcompose_emailfrom }}
{% endif %}
{% if checkcompose_emailto is defined %}
email-to: {{ checkcompose_emailto }}
{% endif %}
{% if checkcompose_smtp is defined %}
smtp: {{ checkcompose_smtp }}
{% endif %}
{% if checkcompose_json is defined %}
json: {{ checkcompose_json }}
{% endif %}
{% if checkcompose_loglevel is defined %}
loglevel: {{ checkcompose_loglevel }}
{% endif %}
{% if checkcompose_subvariant_emails is defined %}
{% for subv, recdict in checkcompose_subvariant_emails.items() %}
[{{ subv }}]
{% for rectype, recips in recdict.items() %}
{{ rectype }}: {{ recips|join(' ') }}
{% endfor %}
{% endfor %}
{% endif %}