From c260c7d0ebcb5da3594113dcf69c0917f6d95ab7 Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Thu, 2 Oct 2014 14:52:48 -0700 Subject: [PATCH] Fix error detection. (a better fix is coming) --- 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 acfac20e252..b9c0ae3715a 100644 --- a/pkg/service/endpoints_controller.go +++ b/pkg/service/endpoints_controller.go @@ -76,7 +76,7 @@ func (e *EndpointController) SyncServiceEndpoints() error { currentEndpoints, err := e.client.GetEndpoints(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(), "404") { currentEndpoints = &api.Endpoints{ JSONBase: api.JSONBase{ ID: service.ID,