Merge "Fixes empty metal_query"

This commit is contained in:
Zuul 2019-01-11 17:52:12 +00:00 committed by Gerrit Code Review
commit b049c7dc73
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@
query: "{{ is_metal | ternary(metal_query, non_metal_query) }}"
non_metal_query: "container_networks.{{ network_address }}.address || ansible_host"
find_bridge: "container_networks.{{ network_address }}.bridge"
metal_query: "'ansible_{{ hostvars[inventory_hostname] | json_query(find_bridge) | replace('-','_') }}'.ipv4.address || {{ non_metal_query }}"
metal_query: "\"ansible_{{ hostvars[inventory_hostname] | json_query(find_bridge) | replace('-','_') }}\".ipv4.address || {{ non_metal_query }}"
tags:
- common-address
- always