mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 01:13:48 +08:00
fix: Solving the timezone issue in Redis, as well as the problem of MySQL logs always being in UTC timezone. (#268)
This commit is contained in:
@@ -38,7 +38,6 @@ def string_to_bytes(value):
|
||||
byte_string = value
|
||||
else:
|
||||
byte_string = value.encode("utf-8")
|
||||
|
||||
return byte_string
|
||||
|
||||
|
||||
@@ -314,7 +313,7 @@ class KeyManage:
|
||||
secrets_root_key = current_app.config.get("secrets_root_key")
|
||||
msg, ok = self.is_valid_root_key(secrets_root_key)
|
||||
if not ok:
|
||||
return {"message": msg, "status": "failed"}
|
||||
return true
|
||||
status = self.backend.get(backend_seal_key)
|
||||
return status == "block"
|
||||
|
||||
|
Reference in New Issue
Block a user