From e6bf849809c1ff84eb887973576611f2457774eb Mon Sep 17 00:00:00 2001 From: Dan Klein Date: Mon, 12 Oct 2015 08:32:40 +0300 Subject: named with nametuples the returnvalue of the "send_raw_msg" method. --- scripts/automation/trex_control_plane/client_utils/jsonrpc_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/automation/trex_control_plane/client_utils') diff --git a/scripts/automation/trex_control_plane/client_utils/jsonrpc_client.py b/scripts/automation/trex_control_plane/client_utils/jsonrpc_client.py index 02a9dc10..163c6923 100755 --- a/scripts/automation/trex_control_plane/client_utils/jsonrpc_client.py +++ b/scripts/automation/trex_control_plane/client_utils/jsonrpc_client.py @@ -39,9 +39,9 @@ class BatchMessage(object): rc, resp_list = self.rpc_client.send_raw_msg(msg, block = False) if len(self.batch_list) == 1: - return True, [(rc, resp_list)] + return CmdResponse(True, [CmdResponse(rc, resp_list)]) else: - return rc, resp_list + return CmdResponse(rc, resp_list) # JSON RPC v2.0 client -- cgit 1.2.3-korg