[Git][NTPsec/ntpsec][master] Another attempted fix for GitLab issue #131: pyntpq: kerninfo fails
Eric S. Raymond
gitlab at mg.gitlab.com
Mon Oct 24 13:44:30 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
de872ca4 by Eric S. Raymond at 2016-10-24T08:56:36-04:00
Another attempted fix for GitLab issue #131: pyntpq: kerninfo fails
- - - - -
1 changed file:
- ntpq/pyntpq
Changes:
=====================================
ntpq/pyntpq
=====================================
--- a/ntpq/pyntpq
+++ b/ntpq/pyntpq
@@ -600,6 +600,8 @@ usage: timeout [ msec ]
self.session.rstatus,
statustoa(statype, self.session.rstatus)))
for (name, legend, fmt) in variables:
+ if name not in queried:
+ continue
value = queried[name]
if fmt in (NTP_STR, NTP_UINT, NTP_INT, NTP_ADD, NTP_ADP):
sys.stdout.write("%s %s\n" % (legend, value))
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/de872ca4fd721b9b2fa1ef42cbc933c2d2c62c0f
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161024/9b9afb5b/attachment.html>
More information about the vc
mailing list