mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Use json.loads in the update function
This commit is contained in:
parent
ff8b5e0c03
commit
3c4b513a44
@ -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":
|
||||||
|
Loading…
Reference in New Issue
Block a user