watch: Set the ACL token

pull/298/head
Armon Dadgar 2014-08-20 16:45:37 -07:00
parent 723352fc37
commit ee4a1a960f
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)