diff options
author | 2015-10-12 08:32:40 +0300 | |
---|---|---|
committer | 2015-10-12 08:32:40 +0300 | |
commit | e6bf849809c1ff84eb887973576611f2457774eb (patch) | |
tree | 776ba1971cd105957a3cbdefa29732fe55ad52dc | |
parent | a9f60d36e81c25244dad8f4f4c985f1e8e368c7c (diff) |
named with nametuples the returnvalue of the "send_raw_msg" method.
-rwxr-xr-x | scripts/automation/trex_control_plane/client_utils/jsonrpc_client.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |