From 520a4fd5a1b8e6644d0891aae5ada25f96b7e90d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Wed, 10 Jul 2024 22:57:49 +0000 Subject: [PATCH] Change path for overwatcher:enabled key in redis --- src/lvmapi/routers/overwatcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lvmapi/routers/overwatcher.py b/src/lvmapi/routers/overwatcher.py index 3f3f65f..10b1f09 100644 --- a/src/lvmapi/routers/overwatcher.py +++ b/src/lvmapi/routers/overwatcher.py @@ -29,7 +29,7 @@ def get_overwatcher_enabled() -> bool: redis = get_redis_connection() - enabled = redis.get("overwatcher:enabled") + enabled = redis.get("gort:overwatcher:enabled") assert enabled is None or isinstance(enabled, str) if enabled is None: @@ -43,6 +43,6 @@ def put_overwatcher_enabled(enabled: bool) -> bool: """Enables or disables the overwatcher.""" redis = get_redis_connection() - redis.set("overwatcher:enabled", int(enabled)) + redis.set("gort:overwatcher:enabled", int(enabled)) return enabled