Changed dictionary access for single scope

This commit is contained in:
2025-03-09 17:48:04 -04:00
parent ed5b0cab52
commit 0db590570d

View File

@ -633,7 +633,7 @@ class SystemHealthMonitor:
priority = self.PRIORITIES['MEDIUM']
category = self.TICKET_TEMPLATES['DEFAULT_CATEGORY']
issue_type = self.TICKET_TEMPLATES['DEFAULT_ISSUE_TYPE']
scope = self.TICKET_TEMPLATES['SCOPE_SINGLE']
scope = self.TICKET_TEMPLATES['SCOPE']['SINGLE_NODE']
drive_size = ""
if "Drive" in issue:
@ -1381,8 +1381,9 @@ class SystemHealthMonitor:
try:
parts = fs_line.split()
if len(parts) >= 6:
if parts[5] and not self._is_excluded_mount(parts[5]):
if any(re.match(pattern, parts[5]) for pattern in self.CONFIG['EXCLUDED_PATTERNS']) or \
parts[5] in self.CONFIG['EXCLUDED_MOUNTS']:
continue
# Convert size strings to comparable values
total = parts[2]
used = parts[3]