From 7378c5f6622ad9bcbfcde40968fdc43afcb70071 Mon Sep 17 00:00:00 2001 From: Edan David Date: Sun, 16 Jul 2017 02:33:54 -0400 Subject: [PATCH] Fix devstack's bash script, fix 2 logical expressions Change-Id: I5b2a100d78edef8c0f14cc19a5185d6c65a094df --- devstack/lib/neutron_ml2_mlnx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devstack/lib/neutron_ml2_mlnx b/devstack/lib/neutron_ml2_mlnx index 797b046..f72007c 100644 --- a/devstack/lib/neutron_ml2_mlnx +++ b/devstack/lib/neutron_ml2_mlnx @@ -58,14 +58,14 @@ function configure_neutron_ml2_mlnx { iniset /$Q_PLUGIN_CONF_FILE eswitch physical_interface_mappings $PHYSICAL_INTERFACE_MAPPINGS fi iniset /$Q_PLUGIN_CONF_FILE securitygroup noop - if [[ $UPDATE_CLIENT_ID ]]; then + if [[ -n "${UPDATE_CLIENT_ID}" ]]; then iniset /$NEUTRON_DCHP_CONF DEFAULT dhcp_broadcast_reply True fi fi if is_service_enabled eswitchd; then configure_eswitchd fi - if is_service_enabled mlnx_dnsmasq && [[ ! $UPDATE_CLIENT_ID ]]; then + if is_service_enabled mlnx_dnsmasq && [[ -z "${UPDATE_CLIENT_ID}" ]]; then configure_mlnx_dnsmasq fi }