fix DatabaseList init

This commit is contained in:
2023-12-12 14:32:19 +01:00
parent 479c1513a3
commit af800c73aa
2 changed files with 10 additions and 8 deletions

View File

@@ -432,6 +432,8 @@ class Quarantine:
if "allowlist" in cfg["options"]:
allowlist = cfg["options"]["allowlist"]
if allowlist["type"] == "db":
allowlist["name"] = f"{cfg['name']}: allowlist"
allowlist["loglevel"] = cfg["loglevel"]
self._allowlist = DatabaseList(allowlist, debug)
else:
raise RuntimeError("invalid allowlist type")