From 11e4cfd72b5f43bfff6e834c3732b1bd65945ed0 Mon Sep 17 00:00:00 2001 From: Ryan Uber Date: Thu, 27 Aug 2015 13:29:07 -0700 Subject: [PATCH] agent: reload SCADA client if endpoint changes --- command/agent/command.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/command/agent/command.go b/command/agent/command.go index b656021935..a8bc10ee7f 100644 --- a/command/agent/command.go +++ b/command/agent/command.go @@ -909,7 +909,8 @@ func (c *Command) handleReload(config *Config) *Config { // Reload SCADA client if we have a change if newConf.AtlasInfrastructure != config.AtlasInfrastructure || - newConf.AtlasToken != config.AtlasToken { + newConf.AtlasToken != config.AtlasToken || + newConf.AtlasEndpoint != config.AtlasEndpoint { if err := c.setupScadaConn(newConf); err != nil { c.Ui.Error(fmt.Sprintf("Failed reloading SCADA client: %s", err)) return nil