Fixed taging for disabled host

This commit is contained in:
ladislav.dusa
2025-04-09 14:54:19 +02:00
parent 4f2e8e00b0
commit 002c82f549

View File

@ -244,7 +244,7 @@ if _RESTORE:
topic = "sectorq/amd/backups"
step = 100 / len(_APP)
for app in _APP:
msg = {"mode":_MODE, "status":"restore","bak_name":"Restore","host":host,"cur_job":app,"start_time":STARTTIME,"end_time":"","progress":np.ceil(PROGRESS),"finished":1,"used_space":1}
msg = {"mode":_MODE, "status":"restore","bak_name":"Restore","host":host,"cur_job":app,"start_time":STARTTIME,"end_time":"","progress":str(np.ceil(PROGRESS)) + "%","finished":1,"used_space":1}
logging.info(msg)
send_mqtt_message(msg)