watch: Set the ACL token

This commit is contained in:
Armon Dadgar 2014-08-20 16:45:37 -07:00
parent 19b55fab59
commit d47c60daf4
1 changed files with 1 additions and 1 deletions

View File

@ -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)