Fixed taging for disabled host

This commit is contained in:
ladislav.dusa
2025-04-09 14:55:16 +02:00
parent 002c82f549
commit 5b20f9d190

View File

@ -445,12 +445,7 @@ if _RESTORE:
ans = input("continue?") or "n"
if ans == "y" and _EXECUTE:
status, output = subprocess.getstatusoutput(cmnd)
now = datetime.datetime.now()
ENDTIME = now.strftime("%Y-%m-%d_%H:%M:%S")
msg = {"status":"finished","bak_name":app,"start_time":DATETIME,"end_time":ENDTIME,"progress":0}
send_mqtt_message(msg)
now = datetime.datetime.now()
now = datetime.datetime.now()
ENDJOB = now.strftime("%Y-%m-%d_%H:%M:%S")
logging.info("Sending finished status")