Skip to content

Commit e851438

Browse files
committed
test: ntp: Increase stability of NTP tests
1 parent fa0b2bd commit e851438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/infamy/ntp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def _get_ntp(target):
1010
if data is None:
1111
return None
1212

13-
return data["system-state"].get("infix-system:ntp", None) or data["system-state"].get("ntp", None)
13+
return data.get("system-state", {}).get("infix-system:ntp", None) or data["system-state"].get("ntp", None)
1414

1515

1616
def _get_ntp_sources(target):

0 commit comments

Comments
 (0)