Changed the order of things
All checks were successful
continuous-integration/drone/push Build is passing

also fixed spelling of amqp
This commit is contained in:
2021-07-28 15:13:44 +02:00
parent 414330b3d5
commit 3d423c71c6
4 changed files with 19 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env python3
from db import db
from magic_ampq import magic_ampq
from magic_amqp import magic_amqp
"""
Healthchek functions
@@ -24,12 +24,12 @@ def health_database_status():
return is_database_working, output
def ampq_connection_status():
if magic_ampq.is_healthy():
def amqp_connection_status():
if magic_amqp.is_healthy():
result = True
text = "ampq connection is ok"
text = "amqp connection is ok"
else:
result = False
text = "ampq connection is unhealthy"
text = "amqp connection is unhealthy"
return result, text