diff --git a/command/agent/consul/service_client.go b/command/agent/consul/service_client.go index dbf2b60d4..d3c4f1938 100644 --- a/command/agent/consul/service_client.go +++ b/command/agent/consul/service_client.go @@ -866,8 +866,7 @@ func (c *ServiceClient) serviceRegs(ops *operations, service *structs.Service, w } // newConnect returns (nil, nil) if there's no Connect-enabled service. - sidecarId := id + sidecarSuffix - connect, err := newConnect(sidecarId, service.Name, service.Connect, workload.Networks) + connect, err := newConnect(id, service.Name, service.Connect, workload.Networks) if err != nil { return nil, fmt.Errorf("invalid Consul Connect configuration for service %q: %v", service.Name, err) }