ソースを参照

fix(rule): fixes rule reading bug

bergquist 9 年 前
コミット
887e236bce
1 ファイル変更2 行追加1 行削除
  1. 2 1
      pkg/services/alerting/conditions/query.go

+ 2 - 1
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
 }