Commit 548716fb authored by Pietsch, Martin's avatar Pietsch, Martin

change from python 2 to python 3 support

parent 2fcafafc
......@@ -32,7 +32,7 @@ DISTRIBUTIONS="kernel.txz base.txz"
PARTITIONS="{{ partdata | join('') }}"
PKGREPO="{{ system_local_mirror | default(system_home_mirror) }}"
HOST="{{ hostobj.network.hostname | default(hostname) }}"
{% for ifname, ifdata in hostobj.network.devices.iteritems() %}
{% for ifname, ifdata in hostobj.network.devices.items() %}
{% if ifdata.ipv4 is defined %}
{% if hostobj.network.classes[ifdata.class].dhcp is defined %}
{% if hostobj.network.classes[ifdata.class].dhcp.ipv4 is defined %}
......@@ -67,7 +67,7 @@ HOST="{{ hostobj.network.hostname | default(hostname) }}"
{% set dnsns = [] %}
{% set dnsdom = [] %}
{% for ncname, ncdata in hostobj.network.classes.iteritems() %}
{% for ncname, ncdata in hostobj.network.classes.items() %}
{% if (ncdata.default | default(False)) == True %}
{% if ncdata.ipv4 is defined %}
{{ 'defaultrouter="%s"' | format(ncdata.ipv4.gateway) }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment