xenserver: Fix init script with multiple --remote options to ovsdb-server.
authorBen Pfaff <blp@nicira.com>
Mon, 11 Jan 2010 18:04:13 +0000 (10:04 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 11 Jan 2010 18:04:13 +0000 (10:04 -0800)
Reported-by: Peter Balland <peter@nicira.com>
xenserver/etc_init.d_vswitch

index 789ec7398decfed839d9388d8a6601b301d04340..a8d5a388d66db1f4b8152b0e85e0146f318b6ffc 100755 (executable)
@@ -137,8 +137,8 @@ function start_ovsdb_server {
     fi
     cd "$OVSDB_SERVER_RUN_DIR"
     local remotes=
-    for remote in "$OVSDB_SERVER_REMOTES"; do
-        remotes="$remotes --remote=$OVSDB_SERVER_REMOTES"
+    for remote in $OVSDB_SERVER_REMOTES; do
+        remotes="$remotes --remote=$remote"
     done
     if [ -n "$OVSDB_SERVER_FILE_LOGLEVEL" ]; then
         logfile_level_opt="-vANY:FILE:${OVSDB_SERVER_FILE_LOGLEVEL}"