2
0

added proper indentation for jinja conditionals in reactor template

This commit is contained in:
Tim O'Guin 2014-10-24 17:04:12 -05:00
parent 2852e7b897
commit 3d52dfd8ec

View File

@ -4,12 +4,12 @@
{%- set reactors = salt['pillar.get']('salt:reactor') -%} {%- set reactors = salt['pillar.get']('salt:reactor') -%}
{%- if reactors %} {%- if reactors %}
reactor: reactor:
{%- for reactor in reactors %} {%- for reactor in reactors %}
{%- for event_tag, reactor_files in reactor.items() %} {%- for event_tag, reactor_files in reactor.items() %}
- '{{ event_tag }}' - '{{ event_tag }}'
{%- for reactor_file in reactor_files %} {%- for reactor_file in reactor_files %}
- {{ reactor_file }} - {{ reactor_file }}
{%- endfor %} {%- endfor %}
{%- endfor %} {%- endfor %}
{% endfor -%} {% endfor -%}
{%- endif -%} {%- endif -%}