Browse Source

fix iteritems python3

master
Niels Abspoel 6 years ago
parent
commit
3c731605cc
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      salt/files/master.d/f_defaults.conf

+ 5
- 5
salt/files/master.d/f_defaults.conf View File

external_auth: external_auth:
{%- for auth, users in cfg_master['external_auth']|dictsort %} {%- for auth, users in cfg_master['external_auth']|dictsort %}
{{ auth }}: {{ auth }}:
{%- for user, commands in users.iteritems() %}
{%- for user, commands in users.items() %}
{{ user }}: {{ user }}:
{%- for command in commands %} {%- for command in commands %}
{%- if command is mapping %} {%- if command is mapping %}
{%- for target, targetcommands in command.iteritems() %}
{%- for target, targetcommands in command.items() %}
- {% raw %}'{% endraw %}{{ target }}{% raw %}'{% endraw %}: - {% raw %}'{% endraw %}{{ target }}{% raw %}'{% endraw %}:
{%- for targetcommand in targetcommands %} {%- for targetcommand in targetcommands %}
{%- if targetcommand is mapping %} {%- if targetcommand is mapping %}
{%- for module, options in targetcommand.iteritems() %}
{%- for module, options in targetcommand.items() %}
- {% raw %}'{% endraw %}{{ module }}{% raw %}'{% endraw %}: - {% raw %}'{% endraw %}{{ module }}{% raw %}'{% endraw %}:
{%- for category, arguments in options.iteritems() %}
{%- for category, arguments in options.items() %}
{% raw %}'{% endraw %}{{ category }}{% raw %}'{% endraw %}: {% raw %}'{% endraw %}{{ category }}{% raw %}'{% endraw %}:
{%- if arguments is mapping %} {%- if arguments is mapping %}
{%- for key, argument in arguments.iteritems() %}
{%- for key, argument in arguments.items() %}
{% raw %}'{% endraw %}{{ key }}{% raw %}'{% endraw %}: {% raw %}'{% endraw %}{{ argument }}{% raw %}'{% endraw %} {% raw %}'{% endraw %}{{ key }}{% raw %}'{% endraw %}: {% raw %}'{% endraw %}{{ argument }}{% raw %}'{% endraw %}
{%- endfor %} {%- endfor %}
{%- else %} {%- else %}

Loading…
Cancel
Save