Skip to content
Snippets Groups Projects
Commit 37258427 authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

fix(test_fail2ban): exit if not running

parent 5c01b8c0
No related branches found
No related tags found
No related merge requests found
......@@ -109,6 +109,8 @@ def main():
if not check_service_running("fail2ban"):
u.warning("fail2ban is not running")
warnings += 1
# warning exit if not running
sys.exit(3)
else:
u.success("fail2ban is running")
......@@ -123,7 +125,7 @@ def main():
if errors:
sys.exit(1)
if warnings:
elif warnings:
sys.exit(3)
else:
sys.exit(0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment