mirror of https://github.com/hashicorp/consul
agent: reload SCADA client if endpoint changes
parent
3b3fb7f8c9
commit
11e4cfd72b
|
@ -909,7 +909,8 @@ func (c *Command) handleReload(config *Config) *Config {
|
||||||
|
|
||||||
// Reload SCADA client if we have a change
|
// Reload SCADA client if we have a change
|
||||||
if newConf.AtlasInfrastructure != config.AtlasInfrastructure ||
|
if newConf.AtlasInfrastructure != config.AtlasInfrastructure ||
|
||||||
newConf.AtlasToken != config.AtlasToken {
|
newConf.AtlasToken != config.AtlasToken ||
|
||||||
|
newConf.AtlasEndpoint != config.AtlasEndpoint {
|
||||||
if err := c.setupScadaConn(newConf); err != nil {
|
if err := c.setupScadaConn(newConf); err != nil {
|
||||||
c.Ui.Error(fmt.Sprintf("Failed reloading SCADA client: %s", err))
|
c.Ui.Error(fmt.Sprintf("Failed reloading SCADA client: %s", err))
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue