From 9aba65e14b989ba25313f65595b7560e1b5abfac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Tue, 28 Oct 2025 11:24:44 +0100 Subject: [PATCH] test: ntp: Make NTP tests more robust --- test/infamy/ntp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/infamy/ntp.py b/test/infamy/ntp.py index 4704189e..03a599af 100644 --- a/test/infamy/ntp.py +++ b/test/infamy/ntp.py @@ -10,7 +10,7 @@ def _get_ntp(target): if data is None: return None - return data["system-state"].get("infix-system:ntp", None) or data["system-state"].get("ntp", None) + return data.get("system-state", {}).get("infix-system:ntp", None) or data.get("system-state", {}).get("ntp", None) def _get_ntp_sources(target):