Commit 23823f2e authored by Qarnot computing's avatar Qarnot computing

Fixed slo status

parent f04199f1
......@@ -247,7 +247,7 @@ class ITLBClientDaemon:
def get_remaining_downtime(sla_status: SLAStatus) -> float:
downtime_slo: SLO = next((slo for slo in sla_status.slos
if slo.objective == 'downtime' and slo.status == 'ok'), None)
if slo.objective == 'downtime' and slo.status == 'active'), None)
if not downtime_slo:
# We can have as much downtime as we want (weird...) let's represent this in a
# very clumsy way, by a big integer. ¯\_(ツ)_/¯
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment