mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 03:15:42 +03:00
consul/connect: use range on upstream canonicalize
Co-authored-by: Tim Gross <tgross@hashicorp.com>
This commit is contained in:
@@ -281,8 +281,8 @@ func (cp *ConsulProxy) Canonicalize() {
|
||||
cp.Upstreams = nil
|
||||
}
|
||||
|
||||
for i := 0; i < len(cp.Upstreams); i++ {
|
||||
cp.Upstreams[i].Canonicalize()
|
||||
for _, upstream := range cp.Upstreams {
|
||||
upstream.Canonicalize()
|
||||
}
|
||||
|
||||
if len(cp.Config) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user