We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa0b2bd commit e851438Copy full SHA for e851438
test/infamy/ntp.py
@@ -10,7 +10,7 @@ def _get_ntp(target):
10
if data is None:
11
return None
12
13
- 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["system-state"].get("ntp", None)
14
15
16
def _get_ntp_sources(target):
0 commit comments