mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-04 22:32:09 -04:00
Update cluster name during config merge
This commit is contained in:
parent
e5c61509d6
commit
46b94d8612
1 changed files with 5 additions and 0 deletions
|
|
@ -212,6 +212,11 @@ func (c *Config) Merge(c2 *Config) *Config {
|
|||
result.DefaultLeaseTTL = c2.DefaultLeaseTTL
|
||||
}
|
||||
|
||||
result.ClusterName = c.ClusterName
|
||||
if c2.ClusterName != "" {
|
||||
result.ClusterName = c2.ClusterName
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue