charm-neutron-openvswitch/templates/dnsmasq.conf
Aydin Doyak 84fb4b906d 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
2017-12-14 16:03:13 +03:00

6 lines
122 B
Plaintext

{% if dnsmasq_flags -%}
{% for key, value in dnsmasq_flags.items() -%}
{{ key }} = {{ value }}
{% endfor -%}
{% endif -%}