integration: Fix swarm_manage helper with custom discovery.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2015-04-15 19:39:12 -07:00
parent f27a7b8357
commit 62afd8133a
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ function wait_until_reachable() {
# Start the swarm manager in background.
function swarm_manage() {
local discovery
if [ $# -ge 0 ]; then
if [ $# -eq 0 ]; then
discovery=`join , ${HOSTS[@]}`
else
discovery="$@"