Skip to content

Commit

Permalink
clone vault agent client with headers (#15274)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccapurso authored May 3, 2022
1 parent b08ff17 commit 836ed70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 836ed70

Please sign in to comment.