From 27a07d0179d1ca2cc990b624c1850a9974866b71 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Wed, 4 Mar 2026 13:24:47 +0100 Subject: [PATCH] statd: silence 'show firewall' when firewall is disabled Fixes #1416 Signed-off-by: Joachim Wiberg --- src/statd/python/cli_pretty/cli_pretty.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/statd/python/cli_pretty/cli_pretty.py b/src/statd/python/cli_pretty/cli_pretty.py index fd2caa5c..703468c5 100755 --- a/src/statd/python/cli_pretty/cli_pretty.py +++ b/src/statd/python/cli_pretty/cli_pretty.py @@ -5618,7 +5618,8 @@ def main(): global UNIT_TEST try: - json_data = json.load(sys.stdin) + raw = sys.stdin.read() + json_data = json.loads(raw) if raw.strip() else {} except json.JSONDecodeError: print("Error, invalid JSON input") sys.exit(1)