Pillar that cointains string variables throw jinja error (#15)
* change file mode to 644
* change file mode to 644
* Fix problem with stringvariable in pillar
diff --git a/iptables/rules.sls b/iptables/rules.sls
index 4e9e6e2..54fbbc4 100644
--- a/iptables/rules.sls
+++ b/iptables/rules.sls
@@ -48,6 +48,7 @@
{%- endif %}
{%- for service_name, service in pillar.items() %}
+{%- if service is mapping %}
{%- if service.get('_support', {}).get('iptables', {}).get('enabled', False) %}
{%- set grains_fragment_file = service_name+'/meta/iptables.yml' %}
@@ -60,6 +61,7 @@
{%- endfor %}
{%- endif %}
+{%- endif %}
{%- endfor %}
{%- for rule in chain.get('rules', []) %}