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 <mbuil@suse.com>
This commit is contained in:
Manuel Buil 2018-04-04 18:31:25 +02:00
parent a5b370130c
commit cb25b3cc59

View File

@ -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