Template Access Error
This commit is contained in:
@ -54,7 +54,8 @@ class SystemHealthMonitor:
|
|||||||
}
|
}
|
||||||
TICKET_TEMPLATES = {
|
TICKET_TEMPLATES = {
|
||||||
'ACTION_TYPE': {
|
'ACTION_TYPE': {
|
||||||
'AUTO': '[auto]'
|
'AUTO': '[auto]',
|
||||||
|
'MANUAL': '[manual]'
|
||||||
},
|
},
|
||||||
'ENVIRONMENT': {
|
'ENVIRONMENT': {
|
||||||
'PRODUCTION': '[production]'
|
'PRODUCTION': '[production]'
|
||||||
@ -75,10 +76,6 @@ class SystemHealthMonitor:
|
|||||||
'SINGLE_NODE': '[single-node]',
|
'SINGLE_NODE': '[single-node]',
|
||||||
'CLUSTER_WIDE': '[cluster-wide]'
|
'CLUSTER_WIDE': '[cluster-wide]'
|
||||||
},
|
},
|
||||||
'ISSUE_TYPE': {
|
|
||||||
'HARDWARE': '[hardware]',
|
|
||||||
'SOFTWARE': '[software]'
|
|
||||||
},
|
|
||||||
'DEFAULT_CATEGORY': 'Hardware',
|
'DEFAULT_CATEGORY': 'Hardware',
|
||||||
'DEFAULT_ISSUE_TYPE': 'Problem'
|
'DEFAULT_ISSUE_TYPE': 'Problem'
|
||||||
}
|
}
|
||||||
@ -1361,7 +1358,7 @@ class SystemHealthMonitor:
|
|||||||
try:
|
try:
|
||||||
parts = fs_line.split()
|
parts = fs_line.split()
|
||||||
if len(parts) >= 6:
|
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
|
continue
|
||||||
|
|
||||||
# Convert size strings to comparable values
|
# Convert size strings to comparable values
|
||||||
|
|||||||
Reference in New Issue
Block a user