Skip to content
Snippets Groups Projects
Commit 7e00288f authored by Martin André's avatar Martin André
Browse files

Properly fail precheck for internal VIP's network

When kolla_internal_vip_address didn't belong to the same network as
network_interface, the prechecks would spit out an ugly error:

  Unexpected templating type error occurred on [snip]:
  argument of type 'NoneType' is not iterable"

This commit fixes the check to execute properly.

Change-Id: I24a066c212c78e105a923525b131724736ac74b6
parent 9931fc6d
No related branches found
No related tags found
No related merge requests found
......@@ -461,4 +461,4 @@
register: ip_addr_output
changed_when: false
failed_when: "'169.254.' not in kolla_internal_vip_address and \
'False' in kolla_internal_vip_address | ipaddr(ip_addr_output.stdout.split()[3])"
kolla_internal_vip_address | ipaddr(ip_addr_output.stdout.split()[3]) is none"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment