mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 18:02:41 +02:00
🐛 — Fix cog not working
This commit is contained in:
parent
8ff6473335
commit
4930286380
1 changed files with 3 additions and 1 deletions
|
@ -8,7 +8,6 @@ from pydantic import BaseModel, ConfigDict, HttpUrl, field_validator
|
|||
from pydantic.functional_validators import BeforeValidator
|
||||
from typing_extensions import Annotated
|
||||
|
||||
from argos.checks import get_registered_checks
|
||||
from argos.schemas.utils import string_to_duration
|
||||
|
||||
Severity = Literal["warning", "error", "critical"]
|
||||
|
@ -50,6 +49,9 @@ class WebsiteCheck(BaseModel):
|
|||
def parse_checks(value):
|
||||
"""Check that checks are valid (i.e. registered) checks"""
|
||||
|
||||
# To avoid circular imports
|
||||
from argos.checks import get_registered_checks
|
||||
|
||||
available_names = get_registered_checks().keys()
|
||||
|
||||
for name, expected in value.items():
|
||||
|
|
Loading…
Reference in a new issue