mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(rule): fixes rule reading bug
This commit is contained in:
@@ -184,5 +184,6 @@ func validateToValue(to string) error {
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("cannot parse to value %s", to)
|
||||
_, err := time.ParseDuration(to)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user