Skip to content

Commit

Permalink
Merge pull request #146 from daks/fix-py3
Browse files Browse the repository at this point in the history
fix: change iteritems to items to be Py3 compatible
  • Loading branch information
myii authored Aug 23, 2019
2 parents 632b2ce + e7cc023 commit c2b00ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion collectd/extra-plugins.sls
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
include:
- collectd
{%- for plugin, plugin_settings in collectd_settings.plugins.extra.iteritems() %}
{%- for plugin, plugin_settings in collectd_settings.plugins.extra.items() %}
{{ collectd_settings.plugindirconfig }}/{{ plugin }}.conf:
file.managed:
- source: salt://collectd/files/extra.conf
Expand Down
2 changes: 1 addition & 1 deletion collectd/files/extra.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ false
LoadPlugin {{ plugin }}

<Plugin "{{ plugin }}">
{%- for name, value in (plugin_settings|default({})).iteritems() %}
{%- for name, value in (plugin_settings|default({})).items() %}
{{ name }} {{ format_value(value )}}
{%- endfor %}
</Plugin>

0 comments on commit c2b00ef

Please sign in to comment.