Non necessary backups should not trigger a metric analysis

This commit is contained in:
deajan 2025-06-10 15:21:59 +02:00
parent f4f813375e
commit 295023a857

View file

@ -187,6 +187,9 @@ def restic_json_to_prometheus(
# If restic_json is a bool, just fail
if isinstance(restic_json, bool):
if restic_json is True:
# This case happens when backup is not necessary
return True, [], False
logger.error("Backup data could not be analayzed.")
return False, [], False