Browse Source

[1175] fix typo and correct changes from trac519

Naoki Kambe 13 years ago
parent
commit
e57c5196d3
2 changed files with 4 additions and 4 deletions
  1. 1 2
      src/bin/bind10/bind10_src.py.in
  2. 3 2
      src/bin/bind10/tests/bind10_test.py.in

+ 1 - 2
src/bin/bind10/bind10_src.py.in

@@ -331,8 +331,7 @@ class BoB:
                 valid = self.ccs.get_module_spec().validate_statistics(
                     True, stats_data["data"])
                 if valid:
-                    cmd = isc.config.ccsession.create_command(
-                    'set', stats_data })
+                    cmd = isc.config.ccsession.create_command('set', stats_data)
                     seq = self.cc_session.group_sendmsg(cmd, 'Stats')
                     # Consume the answer, in case it becomes a orphan message.
                     try:

+ 3 - 2
src/bin/bind10/tests/bind10_test.py.in

@@ -168,8 +168,9 @@ class TestBoB(unittest.TestCase):
         # "getstats" command
         self.assertEqual(bob.command_handler("getstats", None),
                          isc.config.ccsession.create_answer(0,
-                            { "stats_data": {
-                                'bind10.boot_time': time.strftime('%Y-%m-%dT%H:%M:%SZ', _BASETIME)
+                            { "owner": "Boss",
+                              "data": {
+                                'boot_time': time.strftime('%Y-%m-%dT%H:%M:%SZ', _BASETIME)
                             }}))
         # "sendstats" command
         self.assertEqual(bob.command_handler("sendstats", None),