refactor(warnings): report raw signal only, no severity/presentation
get_device_warnings() now returns only {code, meta} — severity, title,
message, and action are resolved centrally by netork's
WARNING_CATALOG (netork/core/device_warnings.py), not by the driver.
Keeps this driver independent of netork and avoids per-vendor drift in
how the same warning code is presented.
This commit is contained in:
@@ -104,8 +104,6 @@ class OpenMediaVaultDriver(LinuxDriver):
|
|||||||
if updates:
|
if updates:
|
||||||
warnings.append({
|
warnings.append({
|
||||||
"code": "updates_available",
|
"code": "updates_available",
|
||||||
"severity": "warning",
|
|
||||||
"action": None,
|
|
||||||
"meta": {
|
"meta": {
|
||||||
"count": upgradable_count,
|
"count": upgradable_count,
|
||||||
"packages": [u.get("name", "") for u in updates[:10]],
|
"packages": [u.get("name", "") for u in updates[:10]],
|
||||||
|
|||||||
Reference in New Issue
Block a user