fix proper return

This commit is contained in:
Fredrik Eriksson 2024-07-13 21:10:22 +02:00
parent 0aae142c05
commit 18920014fe
Signed by: feffe
GPG Key ID: E6B5580B853D322B

View File

@ -81,6 +81,7 @@ def cli():
config.read(config_file)
db = sysalert.db.init(db_file)
ret = 0
if _test_env():
# invoked by systemd
ret = register_exit(config, db)