mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Advertise the cluster_(id|name) in the Scada handshake (#1906)
This commit is contained in:
committed by
Jeff Mitchell
parent
0358a4b161
commit
d5038f34b0
@@ -376,6 +376,15 @@ func (c *ServerCommand) Run(args []string) int {
|
||||
// Initialize the listeners
|
||||
lns := make([]net.Listener, 0, len(config.Listeners))
|
||||
for i, lnConfig := range config.Listeners {
|
||||
if lnConfig.Type == "atlas" {
|
||||
if config.ClusterName == "" {
|
||||
c.Ui.Error("cluster_name is not set in the config and is a required value")
|
||||
return 1
|
||||
}
|
||||
|
||||
lnConfig.Config["cluster_name"] = config.ClusterName
|
||||
}
|
||||
|
||||
ln, props, reloadFunc, err := server.NewListener(lnConfig.Type, lnConfig.Config, logGate)
|
||||
if err != nil {
|
||||
c.Ui.Error(fmt.Sprintf(
|
||||
|
||||
Reference in New Issue
Block a user