From 330d24cb8080228820e9929547800e8362271a2c Mon Sep 17 00:00:00 2001 From: Nick Ethier Date: Mon, 27 Jan 2020 12:55:52 -0500 Subject: [PATCH] consul: fix var name from rebase --- command/agent/consul/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/command/agent/consul/client.go b/command/agent/consul/client.go index 88965c6f927..b97f01e0719 100644 --- a/command/agent/consul/client.go +++ b/command/agent/consul/client.go @@ -714,8 +714,9 @@ func (c *ServiceClient) serviceRegs(ops *operations, service *structs.Service, w return nil, fmt.Errorf("invalid Consul Connect configuration for service %q: %v", service.Name, err) } + // Determine whether to use meta or canary_meta var meta map[string]string - if task.Canary && len(service.CanaryMeta) > 0 { + if workload.Canary && len(service.CanaryMeta) > 0 { meta = make(map[string]string, len(service.CanaryMeta)+1) for k, v := range service.CanaryMeta { meta[k] = v