mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-11-02 19:02:31 +00:00
Let dismissed remote mount warnings clear the health status
This commit is contained in:
@@ -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', ''),
|
||||
|
||||
Reference in New Issue
Block a user