test: ntp: Make NTP tests more robust

This commit is contained in:
Mattias Walström
2025-10-30 12:28:00 +01:00
parent 489487be16
commit 9aba65e14b
+1 -1
View File
@@ -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):