Skip to content

Commit

Permalink
backport of commit 7307c56 (#28600)
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Black <[email protected]>
  • Loading branch information
1 parent 7ddb168 commit 81218ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog/28574.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
cli: Fixed a CLI precedence issue where -agent-address didn't override VAULT_AGENT_ADDR as it should
```
2 changes: 1 addition & 1 deletion command/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (c *BaseCommand) Client() (*api.Client, error) {
config.Address = c.flagAddress
}
if c.flagAgentProxyAddress != "" {
config.Address = c.flagAgentProxyAddress
config.AgentAddress = c.flagAgentProxyAddress
}

if c.flagOutputCurlString {
Expand Down

0 comments on commit 81218ec

Please sign in to comment.