From 8b74c890d550e42e11727c27e7d1ba20aa656425 Mon Sep 17 00:00:00 2001 From: Alano Terblanche <18033717+Benehiko@users.noreply.github.com> Date: Fri, 26 Apr 2024 12:00:20 +0200 Subject: [PATCH] chore: hardcode retries Signed-off-by: Alano Terblanche <18033717+Benehiko@users.noreply.github.com> --- cmd/docker/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/docker/docker.go b/cmd/docker/docker.go index 60ab99f18172..8c59c9960c30 100644 --- a/cmd/docker/docker.go +++ b/cmd/docker/docker.go @@ -280,7 +280,7 @@ func tryPluginRun(ctx context.Context, dockerCli command.Cli, cmd *cobra.Command // final attempt to terminate, and exit. retries++ if retries >= exitLimit { - _, _ = fmt.Fprintf(dockerCli.Err(), "got %d SIGTERM/SIGINTs, forcefully exiting\n", retries) + _, _ = fmt.Fprint(dockerCli.Err(), "got 3 SIGTERM/SIGINTs, forcefully exiting\n") _ = plugincmd.Process.Kill() os.Exit(1) }