From 804fd1e08e29956fd6aa364f481b589234b33a66 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Wed, 29 Oct 2025 17:28:17 +0100 Subject: [PATCH] statd: fix "show firewall" crash if no zone description Signed-off-by: Joachim Wiberg --- src/statd/python/yanger/infix_firewall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/statd/python/yanger/infix_firewall.py b/src/statd/python/yanger/infix_firewall.py index a49f807e..2d301d78 100644 --- a/src/statd/python/yanger/infix_firewall.py +++ b/src/statd/python/yanger/infix_firewall.py @@ -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"),