Fix use of iteritems in dnsmasq.conf templates.

iteritems() method is no longer exists in Python 3 dictionaries
which causes the neutron-openvswitch charm to throw an exception
if dnsmasq_flags option is set. Code has been changed to
items() method to work in Python 3.

Change-Id: I7eaae8f33ed0dc5c97ef478bfe9e1fbd7f79783f
Closes-Bug: #1738198
This commit is contained in:
Aydin Doyak 2017-12-14 15:48:00 +03:00
parent 451953154b
commit 84fb4b906d
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
{% if dnsmasq_flags -%}
{% for key, value in dnsmasq_flags.iteritems() -%}
{% for key, value in dnsmasq_flags.items() -%}
{{ key }} = {{ value }}
{% endfor -%}
{% endif -%}