From fecd9230a5ff3ec712981b1162bb8431f4a73e97 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sun, 9 Mar 2025 17:15:22 -0400 Subject: [PATCH] Template Access Error --- hwmonDaemon.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/hwmonDaemon.py b/hwmonDaemon.py index ace08de..0c5085c 100644 --- a/hwmonDaemon.py +++ b/hwmonDaemon.py @@ -54,7 +54,8 @@ class SystemHealthMonitor: } TICKET_TEMPLATES = { 'ACTION_TYPE': { - 'AUTO': '[auto]' + 'AUTO': '[auto]', + 'MANUAL': '[manual]' }, 'ENVIRONMENT': { 'PRODUCTION': '[production]' @@ -75,10 +76,6 @@ class SystemHealthMonitor: 'SINGLE_NODE': '[single-node]', 'CLUSTER_WIDE': '[cluster-wide]' }, - 'ISSUE_TYPE': { - 'HARDWARE': '[hardware]', - 'SOFTWARE': '[software]' - }, 'DEFAULT_CATEGORY': 'Hardware', 'DEFAULT_ISSUE_TYPE': 'Problem' } @@ -1361,7 +1358,7 @@ class SystemHealthMonitor: try: parts = fs_line.split() if len(parts) >= 6: - if parts[5] in self.CONFIG['EXCLUDED_MOUNTS']: + if parts[5] in self.CONFIG['EXCLUDED_MOUNTS'] or any(excluded in parts[5] for excluded in self.CONFIG['EXCLUDED_MOUNTS']): continue # Convert size strings to comparable values