[Git][NTPsec/ntpsec][master] Maybe fix #838

Hal Murray (@hal.murray) gitlab at mg.gitlab.com
Thu Mar 13 04:42:22 UTC 2025



Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
ecf85386 by Hal Murray at 2025-03-12T21:41:16-07:00
Maybe fix #838

It doesn't break the normal case so we might as well try it.

- - - - -


1 changed file:

- ntpclients/ntpmon.py


Changes:

=====================================
ntpclients/ntpmon.py
=====================================
@@ -81,7 +81,7 @@ def iso8601(t):
 def statline(_peerlist, _mrulist, nyquist):
     "Generate a status line"
     # We don't use stdversion here because the presence of a date is confusing
-    leader = sysvars['version'][0]
+    leader = sysvars.get('version', ['This value is false!'])[0]
     leader = re.sub(r" \([^\)]*\)", "", leader)
     if span.entries:
         trailer = "Updated: %s (%s)" \



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/ecf85386820cfce14e7e3477499c40aa35058cb8

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/ecf85386820cfce14e7e3477499c40aa35058cb8
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20250313/cf173377/attachment-0001.htm>


More information about the vc mailing list