diff --git a/backend/metrics.py b/backend/metrics.py index 96f7b1d..68d7e4a 100644 --- a/backend/metrics.py +++ b/backend/metrics.py @@ -128,7 +128,8 @@ def find_children(key, fields): if service["comparison"] == "equals": logger.debug("In equals comparison") try: - return found == service["value"] + output = (str(found).strip() == str(service["value"]).strip()) + return output except TypeError: # pragma: no cover try: return float(found) == float(service["value"]) diff --git a/frontend/labyrinth/src/views/Checks.vue b/frontend/labyrinth/src/views/Checks.vue index 7242baf..59a674b 100644 --- a/frontend/labyrinth/src/views/Checks.vue +++ b/frontend/labyrinth/src/views/Checks.vue @@ -256,7 +256,7 @@ export default { type: "check", }, services: [], - comparison_types: ["greater", "less", "equal", "time"], + comparison_types: ["greater", "less", "equals", "time"], service_fields: [ "display_name", "name",