diff --git a/templates/systemd-network.j2 b/templates/systemd-network.j2 index 72ebee4..3219464 100644 --- a/templates/systemd-network.j2 +++ b/templates/systemd-network.j2 @@ -31,6 +31,9 @@ Metric={{ 20 + loop.index }} [Network] {% for _addr in _addresses %} +{% if _addr is string %} +{% set _addr = {'address': _addr} %} +{% endif %} {% if _addr.address == 'dhcp' %} DHCP=yes {% else %}