Skip to content

Commit

Permalink
Merge pull request #32 from sdiepend/master
Browse files Browse the repository at this point in the history
Change dict.iteritems to dict.items in templates to drop Python < 2.7 support.
  • Loading branch information
Andrew J Huffman authored Mar 6, 2019
2 parents a5cf69a + 8ce9126 commit 47386cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/sudoers_nospec.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% for default in sudoer_defaults %}
{% if default is mapping %}
{% for name, values in default.iteritems() %}
{% for name, values in default.items() %}
{% for items in values | to_list | slice(6) %}
{% if items %}
Defaults {{ name }} {% if not loop.first %}+{% endif %}= "{{ items | to_list | join(' ') }}"
Expand Down
2 changes: 1 addition & 1 deletion templates/sudoers_plus_spec.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% for default in sudoer_defaults %}
{% if default is mapping %}
{% for name, values in default.iteritems() %}
{% for name, values in default.items() %}
{% for items in values | to_list | slice(6) %}
{% if items %}
Defaults {{ name }} {% if not loop.first %}+{% endif %}= "{{ items | to_list | join(' ') }}"
Expand Down

0 comments on commit 47386cf

Please sign in to comment.