From 0b89c701c13ccb954e8b3c305502d3ab1eebbe66 Mon Sep 17 00:00:00 2001 From: Gabriel Santos Date: Sat, 10 Oct 2015 21:48:51 -0300 Subject: [PATCH] fix #38 --- bind/config.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bind/config.sls b/bind/config.sls index 7c41ed8..4d8818c 100644 --- a/bind/config.sls +++ b/bind/config.sls @@ -119,7 +119,7 @@ bind_default_zones: {% for key, args in salt['pillar.get']('bind:configured_zones', {}).iteritems() -%} {%- set file = salt['pillar.get']("bind:available_zones:" + key + ":file") %} -{% if args['type'] == "master" -%} +{% if file and args['type'] == "master" -%} zones-{{ file }}: file.managed: - name: {{ map.named_directory }}/{{ file }} @@ -147,7 +147,7 @@ signed-{{ file }}: {%- for view, view_data in salt['pillar.get']('bind:configured_views', {}).iteritems() %} {% for key,args in view_data.get('configured_zones', {}).iteritems() -%} {%- set file = salt['pillar.get']("bind:available_zones:" + key + ":file") %} -{% if args['type'] == "master" -%} +{% if file and args['type'] == "master" -%} zones-{{ file }}: file.managed: - name: {{ map.named_directory }}/{{ file }}