From 84e45c91434c3c7e6796f9a201fd9b0fb8f7adcd Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 22 Feb 2017 14:25:14 -0500 Subject: [PATCH] lib/neutron: Fix an extra comma in service_plugins Closes-Bug: #1667077 Change-Id: Ib63a94a931c38a7b2a5fc91a8339a9cd657f7927 --- lib/neutron | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/neutron b/lib/neutron index 7d427555a4..f277062b32 100644 --- a/lib/neutron +++ b/lib/neutron @@ -510,7 +510,10 @@ function neutron_service_plugin_class_add_new { local plugins="" plugins=$(iniget $NEUTRON_CONF DEFAULT service_plugins) - plugins+=",${service_plugin_class}" + if [ $plugins ]; then + plugins+="," + fi + plugins+="${service_plugin_class}" iniset $NEUTRON_CONF DEFAULT service_plugins $plugins }