mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
yanger: hardware: Do not crash if failing to read /run/system.json
This commit is contained in:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user