From caff23424d6829b528a2cd6ac1f675e3e4556700 Mon Sep 17 00:00:00 2001 From: Niels Abspoel Date: Thu, 12 Jan 2017 23:40:41 +0100 Subject: [PATCH] fix default dict --- salt/files/master.d/engine.conf | 2 +- salt/files/minion.d/engine.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/files/master.d/engine.conf b/salt/files/master.d/engine.conf index 746cdbe..47e6a6d 100644 --- a/salt/files/master.d/engine.conf +++ b/salt/files/master.d/engine.conf @@ -1,7 +1,7 @@ # # This file is managed by Salt! Do not edit by hand! # -{%- set engines = salt['pillar.get']('salt:engines') -%} +{%- set engines = salt['pillar.get']('salt:engines', {}) -%} {%- set engines = salt['pillar.get']('salt:master:engines', default=engines, merge=True) -%} {%- if engines %} engines: diff --git a/salt/files/minion.d/engine.conf b/salt/files/minion.d/engine.conf index 658f0e0..695e3ed 100644 --- a/salt/files/minion.d/engine.conf +++ b/salt/files/minion.d/engine.conf @@ -1,7 +1,7 @@ # # This file is managed by Salt! Do not edit by hand! # -{%- set engines = salt['pillar.get']('salt:engines') -%} +{%- set engines = salt['pillar.get']('salt:engines', {}) -%} {%- set engines = salt['pillar.get']('salt:minion:engines', default=engines, merge=True) -%} {%- if engines %} engines: