Use json.loads in the update function

This commit is contained in:
amcmanu3 2024-06-14 18:17:50 -04:00
parent ff8b5e0c03
commit 3c4b513a44

View File

@ -1442,9 +1442,10 @@ class ServerInstance:
while backing_up: while backing_up:
# Check to see if we're already backing up # Check to see if we're already backing up
backing_up = self.check_backup_by_id(backup_config["backup_id"]) backing_up = self.check_backup_by_id(backup_config["backup_id"])
time.sleep(2)
# check if backup was successful # check if backup was successful
backup_status = json.load( backup_status = json.loads(
HelpersManagement.get_backup_config(backup_config["backup_id"])["status"] HelpersManagement.get_backup_config(backup_config["backup_id"])["status"]
)["status"] )["status"]
if backup_status == "Failed": if backup_status == "Failed":