mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-30 18:17:55 +00:00 
			
		
		
		
	-agent-address flag should have higher precedence than the env var (#28574)
* -agent-address flag should have higher precedence than the env var * add changelog
This commit is contained in:
		
							
								
								
									
										3
									
								
								changelog/28574.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								changelog/28574.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -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 | ||||
| ``` | ||||
| @@ -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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Josh Black
					Josh Black