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:
Logan V 2018-03-17 21:44:02 -05:00
parent 48e9cfbcdf
commit dfc5f5578b
1 changed files with 3 additions and 0 deletions

View File

@ -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 %}