From 803b9df1184a20050e536b028eed1408afddbbce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Thu, 1 Jun 2023 17:37:08 +0200 Subject: [PATCH] fix --- c2cwsgiutils/health_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c2cwsgiutils/health_check.py b/c2cwsgiutils/health_check.py index 5bb8dab62..fb08e825a 100644 --- a/c2cwsgiutils/health_check.py +++ b/c2cwsgiutils/health_check.py @@ -316,7 +316,7 @@ def __call__(self, request: pyramid.request.Request) -> str: (actual_version,) = result _ALEMBIC_VERSION.labels( {"version": actual_version, "name": name, "configuration": alembic_ini_path} - ).inc() + ).set(1) if actual_version != version_: raise Exception( # pylint: disable=broad-exception-raised f"Invalid alembic version (db: {actual_version}, code: {version_})"