statd: fix "show firewall" crash if no zone description

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2025-10-31 13:25:58 +01:00
parent eb829afb93
commit 804fd1e08e
+1 -1
View File
@@ -55,7 +55,7 @@ def get_zone_data(fw, name):
"name": name,
"short": short,
"immutable": immutable,
"description": settings.get('description', 0),
"description": settings.get('description', ''),
"interface": list(settings.get('interfaces', [])),
"network": list(settings.get('sources', [])),
"action": action.get(target, "accept"),