From 8e9fd27e2417cbe854f471e3209ce83a25217b0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Fri, 9 Jan 2026 11:07:42 +0100 Subject: [PATCH] yanger: hardware: Do not crash if failing to read /run/system.json --- src/statd/python/yanger/ietf_hardware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/statd/python/yanger/ietf_hardware.py b/src/statd/python/yanger/ietf_hardware.py index 75e53079..74bf46cc 100644 --- a/src/statd/python/yanger/ietf_hardware.py +++ b/src/statd/python/yanger/ietf_hardware.py @@ -668,7 +668,7 @@ def wifi_radio_components(): def operational(): - systemjson = HOST.read_json("/run/system.json") + systemjson = HOST.read_json("/run/system.json", {}) return { "ietf-hardware:hardware": {