mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Update regenconf.py: cleanup legacy rspamd and metronome hash entries
This commit is contained in:
parent
88b11bee09
commit
42114978af
1 changed files with 7 additions and 1 deletions
|
@ -439,7 +439,13 @@ def _get_regenconf_infos():
|
|||
"""
|
||||
try:
|
||||
with open(REGEN_CONF_FILE, "r") as f:
|
||||
return yaml.safe_load(f)
|
||||
data = yaml.safe_load(f)
|
||||
# Cleanup legacy
|
||||
if "metronome" in data:
|
||||
del data["metronome"]
|
||||
if "rspamd" in data:
|
||||
del data["rspamd"]
|
||||
return data
|
||||
except Exception:
|
||||
return {}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue