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:
parent
451953154b
commit
84fb4b906d
@ -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 -%}
|
||||
|
Loading…
x
Reference in New Issue
Block a user