mirror of
https://github.com/netinvent/npbackup.git
synced 2025-11-08 05:04:45 +08:00
Non necessary backups should not trigger a metric analysis
This commit is contained in:
parent
f4f813375e
commit
295023a857
1 changed files with 3 additions and 0 deletions
|
|
@ -187,6 +187,9 @@ def restic_json_to_prometheus(
|
||||||
|
|
||||||
# If restic_json is a bool, just fail
|
# If restic_json is a bool, just fail
|
||||||
if isinstance(restic_json, bool):
|
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.")
|
logger.error("Backup data could not be analayzed.")
|
||||||
return False, [], False
|
return False, [], False
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue