Skip to content

Commit 401188e

Browse files
Merge pull request #95 from aanriot/master
Fix misplaced parenthesis and tests
2 parents 32459c7 + b8f4584 commit 401188e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source "https://rubygems.org"
2+
3+
gem "test-kitchen", '>=1.20.0'
4+
gem "kitchen-docker"
5+
gem "kitchen-salt", ">=0.1.0"
6+
gem "kitchen-inspec"

bind/config.sls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ bind_rndc_client_config:
169169
{% endif %}
170170
171171
{% for zone, zone_data in salt['pillar.get']('bind:configured_zones', {}).items() -%}
172-
{%- set file = salt['pillar.get']("bind:available_zones:" + zone + ":file"), false %}
172+
{%- set file = salt['pillar.get']("bind:available_zones:" + zone + ":file", false) %}
173173
{%- set zone_records = salt['pillar.get']('bind:available_zones:' + zone + ':records', {}) %}
174174
{# If we define RRs in pillar, we use the internal template to generate the zone file
175175
otherwise, we fallback to the old behaviour and use the declared file
@@ -208,7 +208,7 @@ signed-{{ zone }}:
208208
209209
{%- for view, view_data in salt['pillar.get']('bind:configured_views', {}).items() %}
210210
{% for zone, zone_data in view_data.get('configured_zones', {}).items() -%}
211-
{%- set file = salt['pillar.get']("bind:available_zones:" + zone + ":file"), false %}
211+
{%- set file = salt['pillar.get']("bind:available_zones:" + zone + ":file", false) %}
212212
{%- set zone_records = salt['pillar.get']('bind:available_zones:' + zone + ':records', {}) %}
213213
{# If we define RRs in pillar, we use the internal template to generate the zone file
214214
otherwise, we fallback to the old behaviour and use the declared file

0 commit comments

Comments
 (0)