mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-04-30 11:26:23 +00:00
Update notification_events.py
This commit is contained in:
@@ -1343,9 +1343,9 @@ class TaskWatcher:
|
|||||||
if starttime_hex:
|
if starttime_hex:
|
||||||
# LAST character of hex starttime determines subdirectory
|
# LAST character of hex starttime determines subdirectory
|
||||||
subdir = starttime_hex[-1].upper()
|
subdir = starttime_hex[-1].upper()
|
||||||
# The log filename is the full UPID without trailing colon
|
# The log filename is the full UPID INCLUDING the trailing colon
|
||||||
upid_clean = upid.rstrip(':')
|
# Proxmox names the file exactly as the UPID (with colon at end)
|
||||||
log_path = os.path.join(self.TASK_DIR, subdir, upid_clean)
|
log_path = os.path.join(self.TASK_DIR, subdir, upid)
|
||||||
|
|
||||||
if os.path.exists(log_path):
|
if os.path.exists(log_path):
|
||||||
with open(log_path, 'r', errors='replace') as f:
|
with open(log_path, 'r', errors='replace') as f:
|
||||||
|
|||||||
Reference in New Issue
Block a user