[svn] commit: r3207 - /branches/trac191-rebased/src/bin/bind10/bind10.py.in

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Oct 14 10:04:43 UTC 2010


Author: naokikambe
Date: Thu Oct 14 10:04:43 2010
New Revision: 3207

Log:
Change the 'hand-crafted' format into the actual format of command messages according to the comment in [comment:trac:191:21]

Modified:
    branches/trac191-rebased/src/bin/bind10/bind10.py.in

Modified: branches/trac191-rebased/src/bin/bind10/bind10.py.in
==============================================================================
--- branches/trac191-rebased/src/bin/bind10/bind10.py.in (original)
+++ branches/trac191-rebased/src/bin/bind10/bind10.py.in Thu Oct 14 10:04:43 2010
@@ -739,14 +739,11 @@
     time.sleep(1) # wait a second
     if options.verbose:
         sys.stdout.write("[bind10] send \"bind10.boot_time\" to b10-stats\n")
-    cmd = { "command": [
-             'set',
-             { "stats_data": {
-                 'bind10.boot_time': time.strftime('%Y-%m-%dT%H:%M:%SZ', _BASETIME)
-               }
-             }
-            ]
-          }
+    cmd = isc.config.ccsession.create_command('set', 
+            { "stats_data": {
+              'bind10.boot_time': time.strftime('%Y-%m-%dT%H:%M:%SZ', _BASETIME)
+              }
+            })
     boss_of_bind.cc_session.group_sendmsg(cmd, 'Stats')
 
     # In our main loop, we check for dead processes or messages 




More information about the bind10-changes mailing list