From c53da9b1fffc296490a72fd4c263c43747ec7db9 Mon Sep 17 00:00:00 2001 From: William Wernert Date: Thu, 29 Jul 2021 12:04:40 -0400 Subject: [PATCH] Fix wrong variables in learn init.sls --- salt/learn/init.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/learn/init.sls b/salt/learn/init.sls index ee0b5e91b..32f8647b9 100644 --- a/salt/learn/init.sls +++ b/salt/learn/init.sls @@ -3,9 +3,9 @@ {% set module_dict = salt['pillar.get']('learn:modules', [] ) %} -{% if module_list|length != 0 %}} +{% if module_dict.items()|length != 0 %}} include: -{% for module, _ in module_dict %} +{% for module, _ in module_dict.items() %} - 'learn.{{ module }}' {% endfor %} {% endif %}