Skip to content

Commit eddd9f4

Browse files
committed
fix: monitoring nonetype issue
Signed-off-by: Milind Waykole <mwaykole@redhat.com>
1 parent 856715c commit eddd9f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utilities/monitoring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def validate_metrics_field(
8282
metrics_query=metrics_query,
8383
):
8484
if greater_than:
85-
if float(sample) >= float(expected_value):
85+
if sample is not None and float(sample) >= float(expected_value):
8686
LOGGER.info(f"Metric field {sample} is greater than or equal to expected value {expected_value}!")
8787
return
8888
else:

0 commit comments

Comments
 (0)