mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-03 14:23:02 +02:00
test: ntp: Make NTP tests more robust
This commit is contained in:
+1
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user