fix startup migration error missing enable_snapshot var

This commit is contained in:
simon 2022-11-05 11:17:12 +07:00
parent 0b2b8aacef
commit b751ae183a
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -85,8 +85,8 @@ class StartupCheck:
def snapshot_check(self):
"""setup snapshot config, create if needed"""
active = self.config_handler.config["application"]["enable_snapshot"]
if not active:
app = self.config_handler.config["application"]
if not app.get("enable_snapshot"):
return
ElasticSnapshot().setup()