Let dismissed remote mount warnings clear the health status

This commit is contained in:
MacRimi
2026-10-18 12:38:40 +02:00
parent e8b8f95c5b
commit f363ef4395
7 changed files with 109 additions and 38 deletions
+4
View File
@@ -6076,6 +6076,8 @@ class HealthMonitor:
if status == 'stale':
checks[check_label] = {
'status': 'CRITICAL',
'error_key': error_key,
'dismissable': True,
'detail': f'{fstype} mount stale: {error or "unreachable"}',
'fstype': fstype,
'source': m.get('source', ''),
@@ -6105,6 +6107,8 @@ class HealthMonitor:
elif status == 'readonly':
checks[check_label] = {
'status': 'WARNING',
'error_key': error_key,
'dismissable': True,
'detail': f'{fstype} mount unexpectedly read-only',
'fstype': fstype,
'source': m.get('source', ''),