From 14c262fdadcb3a8cc4a728c2da61d8e1ed928e3b Mon Sep 17 00:00:00 2001 From: Niels Abspoel Date: Sun, 17 May 2015 15:39:49 +0200 Subject: [PATCH] fix empty formulas list in pillar with empty dic. --- salt/formulas.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/formulas.sls b/salt/formulas.sls index 55c31fe..b2461d8 100644 --- a/salt/formulas.sls +++ b/salt/formulas.sls @@ -4,7 +4,7 @@ {% from "salt/formulas.jinja" import formulas_git_opt with context %} # Loop over all formulas listed in pillar data -{% for env, entries in salt['pillar.get']('salt_formulas:list').iteritems() %} +{% for env, entries in salt['pillar.get']('salt_formulas:list', {}).iteritems() %} {% for entry in entries %} {% set basedir = formulas_git_opt(env, 'basedir') %}