Skip to content

Commit

Permalink
Merge pull request kubernetes#1552 from thockin/bugs
Browse files Browse the repository at this point in the history
Actually fix services bug
  • Loading branch information
brendandburns committed Oct 2, 2014
2 parents 41daef6 + 2bac0fb commit 189f3dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/service/endpoints_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 189f3dc

Please sign in to comment.