[Git][NTPsec/ntpsec][master] ntpdig: fix hand hacked JSON serialize

Hal Murray gitlab at mg.gitlab.com
Sat Aug 29 23:53:19 UTC 2020



Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
fcd0209f by JamesB192 at 2020-08-29T14:12:02-07:00
ntpdig: fix hand hacked JSON serialize


- - - - -


1 changed file:

- ntpclients/ntpdig.py


Changes:

=====================================
ntpclients/ntpdig.py
=====================================
@@ -216,7 +216,7 @@ def report(packet, json):
 
     if json:
         say('{"time":"%sT%s%s","offset":%f,"precision":%f,"host":"%s",'
-            'ip:"%s","stratum":%s,"leap":"%s","adjusted":%s}\n'
+            '"ip":"%s","stratum":%s,"leap":"%s","adjusted":%s}\n'
             % (date, tod, tz,
                packet.adjust(), packet.synchd(),
                packet.hostname, packet.resolved or packet.hostname,



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

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/fcd0209fe2883bb6ff2f5e0026c339763ecc13dd
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/20200829/932ee287/attachment.htm>


More information about the vc mailing list