mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-29 10:22:37 +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 pydantic.functional_validators import BeforeValidator
|
||||||
from typing_extensions import Annotated
|
from typing_extensions import Annotated
|
||||||
|
|
||||||
from argos.checks import get_registered_checks
|
|
||||||
from argos.schemas.utils import string_to_duration
|
from argos.schemas.utils import string_to_duration
|
||||||
|
|
||||||
Severity = Literal["warning", "error", "critical"]
|
Severity = Literal["warning", "error", "critical"]
|
||||||
|
@ -50,6 +49,9 @@ class WebsiteCheck(BaseModel):
|
||||||
def parse_checks(value):
|
def parse_checks(value):
|
||||||
"""Check that checks are valid (i.e. registered) checks"""
|
"""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()
|
available_names = get_registered_checks().keys()
|
||||||
|
|
||||||
for name, expected in value.items():
|
for name, expected in value.items():
|
||||||
|
|
Loading…
Reference in a new issue