From 887e236bce0b86658a1f726d2526e774a4c1cdcd Mon Sep 17 00:00:00 2001 From: bergquist Date: Mon, 26 Sep 2016 10:01:33 +0200 Subject: [PATCH] fix(rule): fixes rule reading bug --- pkg/services/alerting/conditions/query.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/services/alerting/conditions/query.go b/pkg/services/alerting/conditions/query.go index 15db31838b0..fc5316870bd 100644 --- a/pkg/services/alerting/conditions/query.go +++ b/pkg/services/alerting/conditions/query.go @@ -184,5 +184,6 @@ func validateToValue(to string) error { } } - return fmt.Errorf("cannot parse to value %s", to) + _, err := time.ParseDuration(to) + return err }