Changed dictionary access for single scope
This commit is contained in:
@ -633,7 +633,7 @@ class SystemHealthMonitor:
|
|||||||
priority = self.PRIORITIES['MEDIUM']
|
priority = self.PRIORITIES['MEDIUM']
|
||||||
category = self.TICKET_TEMPLATES['DEFAULT_CATEGORY']
|
category = self.TICKET_TEMPLATES['DEFAULT_CATEGORY']
|
||||||
issue_type = self.TICKET_TEMPLATES['DEFAULT_ISSUE_TYPE']
|
issue_type = self.TICKET_TEMPLATES['DEFAULT_ISSUE_TYPE']
|
||||||
scope = self.TICKET_TEMPLATES['SCOPE_SINGLE']
|
scope = self.TICKET_TEMPLATES['SCOPE']['SINGLE_NODE']
|
||||||
|
|
||||||
drive_size = ""
|
drive_size = ""
|
||||||
if "Drive" in issue:
|
if "Drive" in issue:
|
||||||
@ -1381,8 +1381,9 @@ class SystemHealthMonitor:
|
|||||||
try:
|
try:
|
||||||
parts = fs_line.split()
|
parts = fs_line.split()
|
||||||
if len(parts) >= 6:
|
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
|
# Convert size strings to comparable values
|
||||||
total = parts[2]
|
total = parts[2]
|
||||||
used = parts[3]
|
used = parts[3]
|
||||||
|
|||||||
Reference in New Issue
Block a user