From ee4a1a960f49808131ae0a0993bed8f77db59ca9 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Wed, 20 Aug 2014 16:45:37 -0700 Subject: [PATCH] watch: Set the ACL token --- watch/plan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watch/plan.go b/watch/plan.go index 2faea27d85..d496f9809a 100644 --- a/watch/plan.go +++ b/watch/plan.go @@ -25,7 +25,7 @@ func (p *WatchPlan) Run(address string) error { conf := consulapi.DefaultConfig() conf.Address = address conf.Datacenter = p.Datacenter - // TODO: conf.Token = p.Token + conf.Token = p.Token client, err := consulapi.NewClient(conf) if err != nil { return fmt.Errorf("Failed to connect to agent: %v", err)