From cb25b3cc59f7dfdcf3e54b1e23e66dc1bf7d3c62 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Wed, 4 Apr 2018 18:31:25 +0200 Subject: [PATCH] Bug fix: Parenthesis needed when using ternary neutron_fwaas and neutron_fwaas_v2 where always false. When using ternary, the condition must be inside parenthesis Change-Id: Ifa33e5aedd06e1c0cc44d03354d56de18db46932 Signed-off-by: Manuel Buil --- vars/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vars/main.yml b/vars/main.yml index ab63e890..f1eab5a1 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -294,8 +294,8 @@ neutron_metadata: "{% if neutron_plugin_type.split('.')[0] == 'ml2' %}True{% els ### # Please add the 'firewall' to the neutron_plugin_base list -neutron_fwaas: "{{ 'firewall' in neutron_plugin_base | ternary('True', 'False') }}" -neutron_fwaas_v2: "{{ 'firewall_v2' in neutron_plugin_base | ternary('True', 'False') }}" +neutron_fwaas: "{{ ('firewall' in neutron_plugin_base) | ternary('True', 'False') }}" +neutron_fwaas_v2: "{{ ('firewall_v2' in neutron_plugin_base) | ternary('True', 'False') }}" ### ### LBaaS Plugin Configuration