mirror of https://github.com/status-im/consul.git
Don't override `ServiceTags`
This commit is contained in:
parent
57d62eb492
commit
945e19e139
|
@ -642,8 +642,7 @@ func serviceTagFilter(l []interface{}, tag string) []interface{} {
|
|||
n := len(l)
|
||||
for i := 0; i < n; i++ {
|
||||
srv := l[i].(*structs.ServiceNode)
|
||||
srv.ServiceTags = ToLowerList(srv.ServiceTags)
|
||||
if !strContains(srv.ServiceTags, strings.ToLower(tag)) {
|
||||
if !strContains(ToLowerList(srv.ServiceTags), strings.ToLower(tag)) {
|
||||
l[i], l[n-1] = l[n-1], nil
|
||||
i--
|
||||
n--
|
||||
|
|
Loading…
Reference in New Issue