0
0
mirror of https://github.com/saltstack-formulas/sudoers-formula.git synced 2024-11-28 00:48:12 +01:00

switch default from list to dict on include to match the global configuration

This commit is contained in:
Robert Fairburn 2014-07-09 13:36:47 -05:00
parent 1c3e6844bc
commit fb3773a605

View File

@ -20,7 +20,7 @@
{%- endif %} {%- endif %}
{%- set includedir = sudoers.get('includedir', '/etc/sudoers.d') -%} {%- set includedir = sudoers.get('includedir', '/etc/sudoers.d') -%}
{%- else %} {%- else %}
{%- set defaults = sudoers.get('defaults', []) %} {%- set defaults = sudoers.get('defaults', {}) %}
{%- set generic_defaults = defaults.get('generic', []) %} {%- set generic_defaults = defaults.get('generic', []) %}
{%- set user_list_defaults = defaults.get('user_list', {}) %} {%- set user_list_defaults = defaults.get('user_list', {}) %}
{%- set host_list_defaults = defaults.get('host_list', {}) %} {%- set host_list_defaults = defaults.get('host_list', {}) %}