From f22d0174f33e084445c5845c95aca346e187fb02 Mon Sep 17 00:00:00 2001 From: "Arnaud Porterie (icecrime)" Date: Wed, 15 Jun 2016 21:13:04 -0700 Subject: [PATCH] Service `--update-parallelism` defauls to 0 The `--update-parallelism` flaag should default to 0, which is interpreted by the backend as unlimited. In other words, by default all services should update simultaneously. Signed-off-by: Arnaud Porterie (icecrime) --- api/client/service/opts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/client/service/opts.go b/api/client/service/opts.go index 58c5f94f2d..efd586f7ed 100644 --- a/api/client/service/opts.go +++ b/api/client/service/opts.go @@ -456,7 +456,7 @@ func addServiceFlags(cmd *cobra.Command, opts *serviceOptions) { flags.StringSliceVar(&opts.constraints, flagConstraint, []string{}, "Placement constraints") - flags.Uint64Var(&opts.update.parallelism, flagUpdateParallelism, 1, "Maximum number of tasks updated simultaneously") + flags.Uint64Var(&opts.update.parallelism, flagUpdateParallelism, 0, "Maximum number of tasks updated simultaneously") flags.DurationVar(&opts.update.delay, flagUpdateDelay, time.Duration(0), "Delay between updates") flags.StringSliceVar(&opts.networks, flagNetwork, []string{}, "Network attachments")