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>
(cherry picked from commit 7c1b399235
)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
parent
c050ee1917
commit
a0df810219
1 changed files with 5 additions and 1 deletions
|
@ -571,8 +571,12 @@ func convertUpdateConfig(source *composetypes.UpdateConfig) *swarm.UpdateConfig
|
||||||
if source == nil {
|
if source == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
parallel := uint64(1)
|
||||||
|
if source.Parallelism != nil {
|
||||||
|
parallel = *source.Parallelism
|
||||||
|
}
|
||||||
return &swarm.UpdateConfig{
|
return &swarm.UpdateConfig{
|
||||||
Parallelism: source.Parallelism,
|
Parallelism: parallel,
|
||||||
Delay: source.Delay,
|
Delay: source.Delay,
|
||||||
FailureAction: source.FailureAction,
|
FailureAction: source.FailureAction,
|
||||||
Monitor: source.Monitor,
|
Monitor: source.Monitor,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue