From 34f3aed10288499b6395c2390b3d5d6aad08f1a0 Mon Sep 17 00:00:00 2001 From: Simon Lloyd Date: Sat, 10 Jan 2015 23:48:19 +0100 Subject: [PATCH] Fix overwriting dictionary with pillar data. The dictionary ``sudoers`` is defined twice instead of once, and then updated with additional values from pillar data. This prevents looking up map values. This patch updates, instead of overwrites the dictionary. --- sudoers/included.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sudoers/included.sls b/sudoers/included.sls index d8379a6..e4d4b7e 100644 --- a/sudoers/included.sls +++ b/sudoers/included.sls @@ -3,7 +3,7 @@ include: - sudoers -{% set sudoers = pillar.get('sudoers', {}) %} +{% do sudoers.update(pillar.get('sudoers', {})) %} {% set included_files = sudoers.get('included_files', {}) %} {% for included_file,spec in included_files.items() -%} {{ included_file }}: