Don't override `ServiceTags`

This commit is contained in:
William Tisäter 2014-07-23 15:11:45 +02:00
parent 57d62eb492
commit 945e19e139
1 changed files with 1 additions and 2 deletions

View File

@ -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--