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.
This commit is contained in:
parent
1ecdcc5a9b
commit
34f3aed102
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
include:
|
include:
|
||||||
- sudoers
|
- sudoers
|
||||||
|
|
||||||
{% set sudoers = pillar.get('sudoers', {}) %}
|
{% do sudoers.update(pillar.get('sudoers', {})) %}
|
||||||
{% set included_files = sudoers.get('included_files', {}) %}
|
{% set included_files = sudoers.get('included_files', {}) %}
|
||||||
{% for included_file,spec in included_files.items() -%}
|
{% for included_file,spec in included_files.items() -%}
|
||||||
{{ included_file }}:
|
{{ included_file }}:
|
||||||
|
|
Loading…
Reference in a new issue