mirror of https://github.com/docker/docs.git
integration: Fix swarm_manage helper with custom discovery.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
f27a7b8357
commit
62afd8133a
|
|
@ -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="$@"
|
||||
|
|
|
|||
Loading…
Reference in New Issue