From c92d45dd9b2ed8495bb7a74a4c6c2294d6df689c Mon Sep 17 00:00:00 2001 From: Ryan Mills Date: Mon, 13 Apr 2015 20:46:01 +0000 Subject: [PATCH] Remove 'unknown' as one of the valid states when setting the initial state of a check. --- consul/structs/structs.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/consul/structs/structs.go b/consul/structs/structs.go index bf4f859d21..6472e5d742 100644 --- a/consul/structs/structs.go +++ b/consul/structs/structs.go @@ -37,8 +37,7 @@ const ( ) func ValidStatus(s string) bool { - return s == HealthUnknown || - s == HealthPassing || + return s == HealthPassing || s == HealthWarning || s == HealthCritical }