From 836ed705f635ad1b3d93533d927163b3a7d62421 Mon Sep 17 00:00:00 2001 From: Chris Capurso <1036769+ccapurso@users.noreply.github.com> Date: Tue, 3 May 2022 16:27:53 -0400 Subject: [PATCH] clone vault agent client with headers (#15274) --- command/agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent.go b/command/agent.go index 2b848651573b..b485389563cd 100644 --- a/command/agent.go +++ b/command/agent.go @@ -793,7 +793,7 @@ func (c *AgentCommand) Run(args []string) int { // Auth Handler is going to set its own retry values, so we want to // work on a copy of the client to not affect other subsystems. - clonedClient, err := c.client.Clone() + clonedClient, err := c.client.CloneWithHeaders() if err != nil { c.UI.Error(fmt.Sprintf("Error cloning client for auth handler: %v", err)) return 1