From 2bac0fb2c6e4efcd2152a0d53e624d413aaea5fc Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Thu, 2 Oct 2014 15:21:28 -0700 Subject: [PATCH] Actually fix services bug --- pkg/service/endpoints_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/service/endpoints_controller.go b/pkg/service/endpoints_controller.go index b714faf28f3..b35f34df8b0 100644 --- a/pkg/service/endpoints_controller.go +++ b/pkg/service/endpoints_controller.go @@ -78,7 +78,7 @@ func (e *EndpointController) SyncServiceEndpoints() error { currentEndpoints, err := e.client.GetEndpoints(nsCtx, service.ID) if err != nil { // TODO this is brittle as all get out, refactor the client libraries to return a structured error. - if strings.Contains(err.Error(), "404") { + if strings.Contains(err.Error(), "not found") { currentEndpoints = &api.Endpoints{ JSONBase: api.JSONBase{ ID: service.ID,