mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Default parallelism to 1.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
3bd64de7a9
commit
7c1b399235
1 changed files with 5 additions and 1 deletions
|
@ -615,8 +615,12 @@ func convertUpdateConfig(source *composetypes.UpdateConfig) *swarm.UpdateConfig
|
|||
if source == nil {
|
||||
return nil
|
||||
}
|
||||
parallel := uint64(1)
|
||||
if source.Parallelism != nil {
|
||||
parallel = *source.Parallelism
|
||||
}
|
||||
return &swarm.UpdateConfig{
|
||||
Parallelism: source.Parallelism,
|
||||
Parallelism: parallel,
|
||||
Delay: source.Delay,
|
||||
FailureAction: source.FailureAction,
|
||||
Monitor: source.Monitor,
|
||||
|
|
Loading…
Add table
Reference in a new issue