From 85b070b1326738ac4054418aba9678c05a9a07d6 Mon Sep 17 00:00:00 2001 From: Andrew Hurley Date: Sun, 28 Jun 2026 16:42:03 +0800 Subject: [PATCH] lxcd list error fixed --- lxcd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxcd.py b/lxcd.py index b970254..59837e0 100755 --- a/lxcd.py +++ b/lxcd.py @@ -108,7 +108,7 @@ def handle_list(args): ipv4 = "N/A" state = c.get("state") if state: - networks = state.get("network", {}) + networks = state.get("network") or {} eth0 = networks.get("eth0", {}) addrs = [a["address"] for a in eth0.get("addresses", []) if a.get("family") == "inet"]