From c27d9bf5bc25a1a9e063ca076ce2e99c02dfe31e Mon Sep 17 00:00:00 2001 From: Dan Klein Date: Wed, 7 Oct 2015 00:32:37 +0300 Subject: Incorporating batch commands in stateless client --- scripts/automation/trex_control_plane/client_utils/jsonrpc_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 a5adc485..db5ddc51 100755 --- a/scripts/automation/trex_control_plane/client_utils/jsonrpc_client.py +++ b/scripts/automation/trex_control_plane/client_utils/jsonrpc_client.py @@ -23,7 +23,7 @@ class BatchMessage(object): self.rpc_client = rpc_client self.batch_list = [] - def add (self, method_name, params = {}): + def add (self, method_name, params={}): id, msg = self.rpc_client.create_jsonrpc_v2(method_name, params, encode = False) self.batch_list.append(msg) -- cgit 1.2.3-korg