[svn] commit: r3694 - in /trunk: ChangeLog src/bin/bindctl/bindcmd.py

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Dec 1 16:34:29 UTC 2010


Author: jelte
Date: Wed Dec  1 16:34:29 2010
New Revision: 3694

Log:
bindctl printing of configuration values changed to be in JSON format instead of python literals (which is also the format required for input). 1-line change, discussed on jabber.

Modified:
    trunk/ChangeLog
    trunk/src/bin/bindctl/bindcmd.py

Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog (original)
+++ trunk/ChangeLog Wed Dec  1 16:34:29 2010
@@ -1,3 +1,8 @@
+  123.  [bug]		jelte
+	src/bin/bindctl printed values had the form of python literals
+	(e.g. 'True'), while the input requires valid JSON (e.g. 'true').
+	Output changed to JSON format for consistency.
+
   122.  [func]		stephen
 	src/bin/bind10: Added configuration options to Boss to determine
 	whether to start the authoritative server, recursive server (or

Modified: trunk/src/bin/bindctl/bindcmd.py
==============================================================================
--- trunk/src/bin/bindctl/bindcmd.py (original)
+++ trunk/src/bin/bindctl/bindcmd.py Wed Dec  1 16:34:29 2010
@@ -558,7 +558,7 @@
                     if value_map['type'] in [ 'module', 'map', 'list' ]:
                         line += "/"
                     else:
-                        line += ":\t" + str(value_map['value'])
+                        line += ":\t" + json.dumps(value_map['value'])
                     line += "\t" + value_map['type']
                     line += "\t"
                     if value_map['default']:




More information about the bind10-changes mailing list