watch: Set the ACL token
This commit is contained in:
parent
19b55fab59
commit
d47c60daf4
|
@ -25,7 +25,7 @@ func (p *WatchPlan) Run(address string) error {
|
||||||
conf := consulapi.DefaultConfig()
|
conf := consulapi.DefaultConfig()
|
||||||
conf.Address = address
|
conf.Address = address
|
||||||
conf.Datacenter = p.Datacenter
|
conf.Datacenter = p.Datacenter
|
||||||
// TODO: conf.Token = p.Token
|
conf.Token = p.Token
|
||||||
client, err := consulapi.NewClient(conf)
|
client, err := consulapi.NewClient(conf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("Failed to connect to agent: %v", err)
|
return fmt.Errorf("Failed to connect to agent: %v", err)
|
||||||
|
|
Loading…
Reference in New Issue