mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
command: can force address
This commit is contained in:
@@ -31,6 +31,7 @@ const (
|
||||
// Meta contains the meta-options and functionality that nearly every
|
||||
// Vault command inherits.
|
||||
type Meta struct {
|
||||
Address string // Address to force for API clients
|
||||
ClientToken string
|
||||
Ui cli.Ui
|
||||
|
||||
@@ -55,6 +56,9 @@ func (m *Meta) Client() (*api.Client, error) {
|
||||
if m.flagAddress != "" {
|
||||
config.Address = m.flagAddress
|
||||
}
|
||||
if m.Address != "" {
|
||||
config.Address = m.Address
|
||||
}
|
||||
|
||||
// If we need custom TLS configuration, then set it
|
||||
if m.flagCACert != "" || m.flagCAPath != "" || m.flagInsecure {
|
||||
|
||||
Reference in New Issue
Block a user