[Git][NTPsec/ntpsec][master] Address GitLab issue #370: ntpq :config
Eric S. Raymond
gitlab at mg.gitlab.com
Thu Aug 24 20:28:36 UTC 2017
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
6643b8e5 by Eric S. Raymond at 2017-08-24T16:27:42-04:00
Address GitLab issue #370: ntpq :config
- - - - -
1 changed file:
- ntpclients/ntpq
Changes:
=====================================
ntpclients/ntpq
=====================================
--- a/ntpclients/ntpq
+++ b/ntpclients/ntpq
@@ -177,14 +177,15 @@ class Ntpq(cmd.Cmd):
"Called when an empty line is entered in response to the prompt."
pass
- def default(self, line):
- "Called on an input line when the command prefix is not recognized."
-
+ def precmd(self, line):
if line.startswith(":config"):
line = "hot_" + line[1:]
elif line.startswith("config-from-file"):
line = line.replace("config-from-file", "config_from_file")
+ return line
+ def default(self, line):
+ "Called on an input line when the command prefix is not recognized."
cmd, arg, line = self.parseline(line)
try:
dotext = 'do_'+cmd
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/6643b8e5601305b9d10fbd0bc31a936f366a0e6e
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/6643b8e5601305b9d10fbd0bc31a936f366a0e6e
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/20170824/7c1a1f37/attachment.html>
More information about the vc
mailing list