aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin André <m.andre@redhat.com>2016-06-16 16:48:39 +0200
committerMartin André <m.andre@redhat.com>2016-06-16 16:56:50 +0200
commit7e00288ff09072eda41cc8a7daa53ac8bb94323f (patch)
treecdf7855d7fee6a705c4daeffbf14d824a41012d2
parent9931fc6d9ea4821da12700a3075af3b8d8d44d8e (diff)
downloadkolla-7e00288ff09072eda41cc8a7daa53ac8bb94323f.tar.gz
kolla-7e00288ff09072eda41cc8a7daa53ac8bb94323f.zip
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
-rw-r--r--ansible/roles/prechecks/tasks/port_checks.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/ansible/roles/prechecks/tasks/port_checks.yml b/ansible/roles/prechecks/tasks/port_checks.yml
index 73489c402..ef71a6ee4 100644
--- a/ansible/roles/prechecks/tasks/port_checks.yml
+++ b/ansible/roles/prechecks/tasks/port_checks.yml
@@ -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"