From c14e5ac477807d9aa148bb0459f95d5df002767d Mon Sep 17 00:00:00 2001 From: blacksmith77 Date: Fri, 15 Apr 2016 16:20:10 +0200 Subject: [PATCH] dirty value in /etc/default/bind9 when bind.config.protocol is set in pillar, "None" is returned by param.append('-' + protocol|string) statement and written in /etc/default/bind9. This breaks bind9 at start --- bind/files/debian/default | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bind/files/debian/default b/bind/files/debian/default index b1071eb..3522a46 100644 --- a/bind/files/debian/default +++ b/bind/files/debian/default @@ -1,7 +1,7 @@ {% set protocol = salt['pillar.get']('bind:config:protocol', False) -%} {% set param = ['-u bind'] -%} {% if protocol -%} - {{ param.append('-' + protocol|string) }} + {% do param.append('-' + protocol|string) -%} {% endif -%} # run resolvconf? RESOLVCONF=no