2
0

fix empty formulas list in pillar with empty dic.

This commit is contained in:
Niels Abspoel 2015-05-17 15:39:49 +02:00
parent efd15e0896
commit 14c262fdad

View File

@ -4,7 +4,7 @@
{% from "salt/formulas.jinja" import formulas_git_opt with context %} {% from "salt/formulas.jinja" import formulas_git_opt with context %}
# Loop over all formulas listed in pillar data # 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 %} {% for entry in entries %}
{% set basedir = formulas_git_opt(env, 'basedir') %} {% set basedir = formulas_git_opt(env, 'basedir') %}