From 37c01a578c5f70c1a9444ff26edb6827fe51b562 Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Wed, 26 Apr 2023 08:45:12 +0200 Subject: [PATCH] TaskTemplate.ForceUpdate is a counter (#209) --- cmd/backup/script.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/backup/script.go b/cmd/backup/script.go index 729650e..5c540dc 100644 --- a/cmd/backup/script.go +++ b/cmd/backup/script.go @@ -366,7 +366,7 @@ func (s *script) stopContainers() (func() error, error) { if serviceMatch.ID == "" { return fmt.Errorf("stopContainers: couldn't find service with name %s", serviceName) } - serviceMatch.Spec.TaskTemplate.ForceUpdate = 1 + serviceMatch.Spec.TaskTemplate.ForceUpdate += 1 if _, err := s.cli.ServiceUpdate( context.Background(), serviceMatch.ID, serviceMatch.Version, serviceMatch.Spec, types.ServiceUpdateOptions{},