Default to replicated mode

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
Aanand Prasad 2016-11-02 13:10:34 +00:00 committed by Daniel Nephin
parent dfab8f2bd4
commit 25c93d4ebb
1 changed files with 1 additions and 1 deletions

View File

@ -516,7 +516,7 @@ func convertDeployMode(mode string, replicas *uint64) (swarm.ServiceMode, error)
return serviceMode, fmt.Errorf("replicas can only be used with replicated mode") return serviceMode, fmt.Errorf("replicas can only be used with replicated mode")
} }
serviceMode.Global = &swarm.GlobalService{} serviceMode.Global = &swarm.GlobalService{}
case "replicated": case "replicated", "":
serviceMode.Replicated = &swarm.ReplicatedService{Replicas: replicas} serviceMode.Replicated = &swarm.ReplicatedService{Replicas: replicas}
default: default:
return serviceMode, fmt.Errorf("Unknown mode: %s", mode) return serviceMode, fmt.Errorf("Unknown mode: %s", mode)