]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2689] corrected conflict resolution on merge.
authorJINMEI Tatuya <jinmei@isc.org>
Fri, 22 Feb 2013 18:29:34 +0000 (10:29 -0800)
committerJINMEI Tatuya <jinmei@isc.org>
Fri, 22 Feb 2013 18:30:55 +0000 (10:30 -0800)
I kept the wrong version of the code.

src/bin/stats/stats.py.in

index 51bbf96c497f337f989a5839f4ac5e25a13a2227..577afe60af7456bc8afb6461395d121f2b3431ba 100755 (executable)
@@ -267,9 +267,16 @@ class Stats:
         # It counts the number of instances of same module by
         # examining the third value from the array result of
         # 'show_processes' of Init
-        seq = self.cc_session.group_sendmsg(
-            isc.config.ccsession.create_command("show_processes"), 'Init')
-        (answer, env) = self.cc_session.group_recvmsg(False, seq)
+        try:
+            value = self.mccs.rpc_call('show_processes', 'Init')
+        except isc.config.RPCRecipientMissing:
+            # This has been SessionTimeout before, so we keep the original
+            # behavior.
+            raise
+        except isc.config.RPCError:
+            # TODO: Is it OK to just pass? As part of refactoring, preserving
+            # the original behaviour.
+            value = None
         modules = []
         if type(value) is list:
             # NOTE: For example, the "show_processes" command