From e99f9dd07057cba3047ec4d02bb36521fcdf09fd Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Wed, 4 Feb 2015 18:46:24 -0800 Subject: [PATCH] agent: Provide auto-join metadata to SCADA --- command/agent/scada.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/command/agent/scada.go b/command/agent/scada.go index 74df8a427f..f94bfe7143 100644 --- a/command/agent/scada.go +++ b/command/agent/scada.go @@ -32,8 +32,9 @@ func ProviderService(c *Config) *client.ProviderService { "http": 1, }, Meta: map[string]string{ - "server": strconv.FormatBool(c.Server), + "auto-join": strconv.FormatBool(c.AtlasJoin), "datacenter": c.Datacenter, + "server": strconv.FormatBool(c.Server), }, ResourceType: resourceType, }