Commit 5ab5176c authored by Pietsch, Martin's avatar Pietsch, Martin
Browse files

bugfix: handle list not dictionary

parent b3136ed3
......@@ -8,7 +8,7 @@
{% endif %}
{% endfor %}
{% if hostvars[inventory_hostname].network.nat is defined %}
{% for _natdata in hostvars[inventory_hostname].network.nat.items() if "dhcp-ha" in (_natdata.services | default([])) %}
{% for _natdata in hostvars[inventory_hostname].network.nat if "dhcp-ha" in (_natdata.services | default([])) %}
{% if _natdata.ipv4 is defined %}
{% set _ctrl_host_ip.ip = _natdata.ipv4 | ipaddr('address') %}
{% endif %}
......
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