Fixed taging for disabled host

This commit is contained in:
ladislav.dusa
2025-04-09 14:46:37 +02:00
parent e1ee9febac
commit a9a1c3c0fa

View File

@ -18,7 +18,7 @@ import yaml
import paramiko import paramiko
file_path = os.path.realpath(__file__) file_path = os.path.realpath(__file__)
dir_path = os.path.dirname(file_path) dir_path = os.path.dirname(file_path)
VERSION="1.0.0" VERSION="1.0.1"
print(file_path) print(file_path)
print(dir_path) print(dir_path)
os.chdir(dir_path) os.chdir(dir_path)
@ -243,7 +243,7 @@ if _RESTORE:
topic = "sectorq/amd/backups" topic = "sectorq/amd/backups"
step = 100 / len(_APP) step = 100 / len(_APP)
for app in _APP: for app in _APP:
msg = {"mode":_MODE, "status":"restore","bak_name":"s","host":s,"cur_job":app,"start_time":STARTTIME,"end_time":"","progress":PROGRESS,"finished":1,"used_space":1} msg = {"mode":_MODE, "status":"restore","bak_name":"s","host":host,"cur_job":app,"start_time":STARTTIME,"end_time":"","progress":PROGRESS,"finished":1,"used_space":1}
logging.info(msg) logging.info(msg)
send_mqtt_message(msg) send_mqtt_message(msg)