From 3f9e4fc7d47bcf0c1f67952b4a6edebe17a04f26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Paw=C5=82owski?= Date: Thu, 30 Jul 2015 10:45:20 +0200 Subject: [PATCH] Fix for centos5 and jinja < 2.6 --- salt/formulas.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/formulas.jinja b/salt/formulas.jinja index 599659f..1337281 100644 --- a/salt/formulas.jinja +++ b/salt/formulas.jinja @@ -11,7 +11,7 @@ {%- set value = salt['pillar.get']('salt_formulas:git_opts:{0}:{1}'.format(env, opt), salt['pillar.get']('salt_formulas:git_opts:default:{0}'.format(opt), defaults[opt])) -%} -{%- if value is mapping -%} +{%- if value is iterable -%} {{ value|yaml }} {%- else -%} {{ value }}