Browse Source

[2158] fixed full qualified class name

Naoki Kambe 12 years ago
parent
commit
9c938d1580
2 changed files with 3 additions and 4 deletions
  1. 2 2
      src/bin/xfrout/tests/xfrout_test.py.in
  2. 1 2
      src/bin/xfrout/xfrout.py.in

+ 2 - 2
src/bin/xfrout/tests/xfrout_test.py.in

@@ -1609,8 +1609,8 @@ class TestXfroutServer(unittest.TestCase):
 
 
     def test_getstats(self):
     def test_getstats(self):
         self.assertEqual(
         self.assertEqual(
-            self.xfrout_server.command_handler('getstats', None),
-            isc.config.ccsession.create_answer(0,  {}))
+            self.xfrout_server.command_handler('getstats', None), \
+                create_answer(0,  {}))
 
 
 if __name__== "__main__":
 if __name__== "__main__":
     isc.log.resetUnitTestRootLogger()
     isc.log.resetUnitTestRootLogger()

+ 1 - 2
src/bin/xfrout/xfrout.py.in

@@ -1163,8 +1163,7 @@ class XfroutServer:
             # daemon is periodically asking to the b10-xfrout daemon.
             # daemon is periodically asking to the b10-xfrout daemon.
             logger.debug(DBG_XFROUT_TRACE, \
             logger.debug(DBG_XFROUT_TRACE, \
                              XFROUT_RECEIVED_GETSTATS_COMMAND)
                              XFROUT_RECEIVED_GETSTATS_COMMAND)
-            answer = isc.config.ccsession.create_answer(
-                0, self._counter.get_statistics())
+            answer = create_answer(0, self._counter.get_statistics())
 
 
         else:
         else:
             answer = create_answer(1, "Unknown command:" + str(cmd))
             answer = create_answer(1, "Unknown command:" + str(cmd))