From 4930286380af4bae8bc63a36692c369e2ebd5370 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Tue, 5 Dec 2023 10:47:05 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E2=80=94=20Fix=20cog=20not=20wo?= =?UTF-8?q?rking?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- argos/schemas/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/argos/schemas/config.py b/argos/schemas/config.py index df5bb3a..6b87a37 100644 --- a/argos/schemas/config.py +++ b/argos/schemas/config.py @@ -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():