Changed dictionary access for single scope
This commit is contained in:
@ -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]
|
||||
|
||||
Reference in New Issue
Block a user