From 37426f7410fabc476449126460231f3e91ecdf7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Tisa=CC=88ter?= Date: Wed, 23 Jul 2014 10:33:47 +0200 Subject: [PATCH] Make service tag filter case-insensitive --- consul/state_store.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/consul/state_store.go b/consul/state_store.go index ed823eb2e1..043a871032 100644 --- a/consul/state_store.go +++ b/consul/state_store.go @@ -642,7 +642,8 @@ func serviceTagFilter(l []interface{}, tag string) []interface{} { n := len(l) for i := 0; i < n; i++ { srv := l[i].(*structs.ServiceNode) - if !strContains(srv.ServiceTags, tag) { + srv.ServiceTags = ToLowerList(srv.ServiceTags) + if !strContains(srv.ServiceTags, strings.ToLower(tag)) { l[i], l[n-1] = l[n-1], nil i-- n--