fixed variable initialization
This commit is contained in:
parent
78465bbd23
commit
844ac16900
|
@ -866,7 +866,7 @@ func (c *ServiceClient) serviceRegs(ops *operations, service *structs.Service, w
|
||||||
}
|
}
|
||||||
|
|
||||||
// newConnect returns (nil, nil) if there's no Connect-enabled service.
|
// newConnect returns (nil, nil) if there's no Connect-enabled service.
|
||||||
sidecarId = id + sidecarSuffix
|
sidecarId := id + sidecarSuffix
|
||||||
connect, err := newConnect(sidecarId, service.Name, service.Connect, workload.Networks)
|
connect, err := newConnect(sidecarId, service.Name, service.Connect, workload.Networks)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("invalid Consul Connect configuration for service %q: %v", service.Name, err)
|
return nil, fmt.Errorf("invalid Consul Connect configuration for service %q: %v", service.Name, err)
|
||||||
|
|
Loading…
Reference in a new issue