[Git][NTPsec/ntpsec][master] Address GitLab issue #138: pyntpq: "rv 0" should work

Eric S. Raymond gitlab at mg.gitlab.com
Thu Nov 3 11:09:39 UTC 2016


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
6fe483d6 by Eric S. Raymond at 2016-11-03T07:09:21-04:00
Address GitLab issue #138: pyntpq: "rv 0" should work

- - - - -


1 changed file:

- ntpq/pyntpq


Changes:

=====================================
ntpq/pyntpq
=====================================
--- a/ntpq/pyntpq
+++ b/ntpq/pyntpq
@@ -344,7 +344,7 @@ usage: help [ command ]
             except:
                 self.warn("Invalid associd literal.\n")
                 return -1
-            if associd not in [peer.associd for peer in self.peers]:
+            if associd != 0 and associd not in [peer.associd for peer in self.peers]:
                 self.warn("Unknown associd.\n")
                 return -1
             else:



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/6fe483d68c70ed2aa2e1fc2437a3b433903357b9
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161103/ea6de4d5/attachment.html>


More information about the vc mailing list