Skip to content

Commit

Permalink
wrong use function strings.HasPrefix - fixes #545
Browse files Browse the repository at this point in the history
  • Loading branch information
mfuterko authored and aaronhurt committed Mar 4, 2019
1 parent 6869164 commit 3de70c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/consul/passing.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func isServiceCheck(c *api.HealthCheck) bool {
return c.ServiceID != "" &&
c.CheckID != "serfHealth" &&
c.CheckID != "_node_maintenance" &&
!strings.HasPrefix("_service_maintenance:", c.CheckID)
!strings.HasPrefix(c.CheckID, "_service_maintenance:")
}

// isAgentCritical returns true if the agent on the node on which the service
Expand Down

0 comments on commit 3de70c7

Please sign in to comment.