mirror of
https://github.com/FAUSheppy/icinga-webhook-gateway
synced 2025-12-06 07:21:38 +01:00
Merge branch 'master' of github.com:FAUSheppy/icinga-webhook-gateway
This commit is contained in:
@@ -80,7 +80,8 @@ def default():
|
||||
sqlalchemy.desc(Status.timestamp)).first()
|
||||
|
||||
if not lastSuccess and not lastFail:
|
||||
return flask.jsonify(buildReponseDict(None))
|
||||
# service has never reported in #
|
||||
return flask.jsonify(buildReponseDict(None, service=service))
|
||||
elif not lastSuccess and lastFail:
|
||||
return flask.jsonify(buildReponseDict(lastFail))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user