Fix migration metric conditionals
This commit is contained in:
parent
caa3a41099
commit
edc31fae39
4
lease.py
4
lease.py
@ -58,8 +58,8 @@ async def submit(request, q):
|
|||||||
}, return_document=ReturnDocument.BEFORE)
|
}, return_document=ReturnDocument.BEFORE)
|
||||||
if doc:
|
if doc:
|
||||||
submit_count.labels(form.service.data).inc()
|
submit_count.labels(form.service.data).inc()
|
||||||
if doc["instance"] != "instance":
|
if doc.get("instance") != instance:
|
||||||
migration_count.labels(const.FQDN).inc()
|
migration_count.labels(FQDN).inc()
|
||||||
return response.text('Client lease info updated')
|
return response.text('Client lease info updated')
|
||||||
else:
|
else:
|
||||||
not_found_count.labels(form.service.data).inc()
|
not_found_count.labels(form.service.data).inc()
|
||||||
|
Loading…
Reference in New Issue
Block a user