Fix wrong variables in learn init.sls

This commit is contained in:
William Wernert
2021-07-29 12:04:40 -04:00
parent e1785dbd9a
commit c53da9b1ff

View File

@@ -3,9 +3,9 @@
{% set module_dict = salt['pillar.get']('learn:modules', [] ) %} {% set module_dict = salt['pillar.get']('learn:modules', [] ) %}
{% if module_list|length != 0 %}} {% if module_dict.items()|length != 0 %}}
include: include:
{% for module, _ in module_dict %} {% for module, _ in module_dict.items() %}
- 'learn.{{ module }}' - 'learn.{{ module }}'
{% endfor %} {% endfor %}
{% endif %} {% endif %}