From ed887d8b9f91f8c75b45770d5c250b9939f36619 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 22 Feb 2017 14:21:33 -0500 Subject: [PATCH] lib/neutron: Fix conf handling - Remove extra spaces - Fix a missing space in the generated option string - Fix a fatal typo Change-Id: Ieca1c3e3c7e2ff59089ef45435e126ce7ff4f9b5 Closes-Bug: #1667073 --- lib/neutron | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/neutron b/lib/neutron index 19568eaf25..7d427555a4 100644 --- a/lib/neutron +++ b/lib/neutron @@ -395,9 +395,9 @@ function start_neutron_api { service_protocol="http" fi - local opts = "" - opts+="--config-file $NEUTRON_CONF" - opts+="--config-file $NEUTRON_CORE_PLUGIN_CONF" + local opts="" + opts+=" --config-file $NEUTRON_CONF" + opts+=" --config-file $NEUTRON_CORE_PLUGIN_CONF" local cfg_file for cfg_file in ${_NEUTRON_SERVER_EXTRA_CONF_FILES_ABS[@]}; do opts+=" --config-file $cfg_file" @@ -405,7 +405,7 @@ function start_neutron_api { # Start the Neutron service # TODO(sc68cal) Stop hard coding this - run_process neutron-api "$NEUTRON_BIN_DIR/neutron-server $ops" + run_process neutron-api "$NEUTRON_BIN_DIR/neutron-server $opts" if is_ssl_enabled_service "neutron"; then ssl_ca="--ca-certificate=${SSL_BUNDLE_FILE}"