Skip to content

Commit d3e1203

Browse files
committed
Fix /about/usage/system on some arch
On some combination of system configuration and OS a parsing of the lshw output issue happened Which made that endpoint return a 500
1 parent fa4562b commit d3e1203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aleph/vm/orchestrator/machine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async def get_hardware_info():
1717
hw_info = {"cpu": None, "memory": None}
1818

1919
for hw in data["children"][0]["children"]:
20-
if hw["id"] == "cpu":
20+
if hw["id"] == "cpu" or hw["id"].startswith("cpu"):
2121
hw_info["cpu"] = hw
2222
elif hw["class"] == "memory" and hw["id"] == "memory":
2323
hw_info["memory"] = hw

0 commit comments

Comments
 (0)