Skip to content

Commit 37c01a5

Browse files
authored
TaskTemplate.ForceUpdate is a counter (#209)
1 parent 46c6441 commit 37c01a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/backup/script.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ func (s *script) stopContainers() (func() error, error) {
366366
if serviceMatch.ID == "" {
367367
return fmt.Errorf("stopContainers: couldn't find service with name %s", serviceName)
368368
}
369-
serviceMatch.Spec.TaskTemplate.ForceUpdate = 1
369+
serviceMatch.Spec.TaskTemplate.ForceUpdate += 1
370370
if _, err := s.cli.ServiceUpdate(
371371
context.Background(), serviceMatch.ID,
372372
serviceMatch.Version, serviceMatch.Spec, types.ServiceUpdateOptions{},

0 commit comments

Comments
 (0)