Skip to content

Commit

Permalink
Change path for overwatcher:enabled key in redis
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jul 10, 2024
1 parent 26aa77f commit 520a4fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lvmapi/routers/overwatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 520a4fd

Please sign in to comment.