Merge pull request #9 from abednarik/fix_deprecated_iteritems_method
Replace deprecated iteritems() with items()
This commit is contained in:
commit
9130acbf90
@ -3,7 +3,7 @@
|
||||
# This config file is managed by salt.
|
||||
#
|
||||
|
||||
{%- for directive, value in config.iteritems() %}
|
||||
{%- for directive, value in config.items() %}
|
||||
{%- if value is string or value is number %}
|
||||
{{ directive }} {{ value }}
|
||||
{%- else %}
|
||||
|
@ -16,20 +16,20 @@
|
||||
{%- endif -%}
|
||||
{%- endmacro %}
|
||||
|
||||
{% for directive, value in globals.iteritems() -%}
|
||||
{% for directive, value in globals.items() -%}
|
||||
{{ print_directive(directive, value) }}
|
||||
{% endfor %}
|
||||
|
||||
{%- for host, directives in hosts.iteritems() %}
|
||||
{%- for host, directives in hosts.items() %}
|
||||
[{{ host }}]
|
||||
{%- for directive, value in directives.iteritems() %}
|
||||
{%- for directive, value in directives.items() %}
|
||||
{{ print_directive(directive, value) }}
|
||||
{%- endfor %}
|
||||
{% endfor %}
|
||||
|
||||
{%- for group, directives in groups.iteritems() %}
|
||||
{%- for group, directives in groups.items() %}
|
||||
[{{ group }}]
|
||||
{%- for directive, value in directives.iteritems() %}
|
||||
{%- for directive, value in directives.items() %}
|
||||
{{ print_directive(directive, value) }}
|
||||
{%- endfor %}
|
||||
{% endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user