Bläddra i källkod

Merge pull request #28521 from aaronlehmann/omitempty

api: Remove omitempty tag on Parallelism
Vincent Demeester 8 år sedan
förälder
incheckning
465c0484dc
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      api/types/swarm/service.go

+ 1 - 1
api/types/swarm/service.go

@@ -74,7 +74,7 @@ const (
 type UpdateConfig struct {
 type UpdateConfig struct {
 	// Maximum number of tasks to be updated in one iteration.
 	// Maximum number of tasks to be updated in one iteration.
 	// 0 means unlimited parallelism.
 	// 0 means unlimited parallelism.
-	Parallelism uint64 `json:",omitempty"`
+	Parallelism uint64
 
 
 	// Amount of time between updates.
 	// Amount of time between updates.
 	Delay time.Duration `json:",omitempty"`
 	Delay time.Duration `json:",omitempty"`