This commit is contained in:
mdivecky 2020-06-08 12:42:39 +02:00
parent 4c605f15c3
commit 8beafa216d

View file

@ -1,10 +1,7 @@
#!/usr/bin/python3
import json
import sys
from dateutil import parser
from datetime import datetime, timedelta
from pprint import pprint
# from datetime import timedelta
OK = 0
WARNING = 1
@ -29,17 +26,6 @@ for vm in zsync_data:
failed = True
# result = []
# for backup in backup_state:
# backup_vm = backup[0]
# backup_name = backup[1]
# backup_status = backup[2]
# if backup_status == 'ok' or backup_status == 'syncing' or backup_status == 'waiting':
# pass
# else:
# print(backup_vm + ' is fucked')
if failed:
print('Backup in failed state\n')
pprint(backup_state)