Merge "Correctly support list of string prefixes"

This commit is contained in:
Zuul 2018-03-20 02:28:34 +00:00 committed by Gerrit Code Review
commit 657ca67be1
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 %}