Correctly support list of string prefixes
systemd_networks: - interface: dummy3 address: - 10.0.2.100/24 - 10.0.3.100/24 Change-Id: If2f08ff70b637090f0ed1091bd40ce090468a51a
This commit is contained in:
@@ -31,6 +31,9 @@ Metric={{ 20 + loop.index }}
|
|||||||
|
|
||||||
[Network]
|
[Network]
|
||||||
{% for _addr in _addresses %}
|
{% for _addr in _addresses %}
|
||||||
|
{% if _addr is string %}
|
||||||
|
{% set _addr = {'address': _addr} %}
|
||||||
|
{% endif %}
|
||||||
{% if _addr.address == 'dhcp' %}
|
{% if _addr.address == 'dhcp' %}
|
||||||
DHCP=yes
|
DHCP=yes
|
||||||
{% else %}
|
{% else %}
|
||||||
|
Reference in New Issue
Block a user