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
This commit is contained in:
blacksmith77 2016-04-15 16:20:10 +02:00
parent b6c34f9118
commit c14e5ac477

View file

@ -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