summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/client_utils
diff options
context:
space:
mode:
authorDan Klein <danklein10@gmail.com>2015-10-07 13:47:18 +0300
committerDan Klein <danklein10@gmail.com>2015-10-07 13:47:18 +0300
commit4f286bfefa6bbb0be4cdcf1fb004c82fc334c21f (patch)
treea01524843895e9f272974835d5d20390fae40170 /scripts/automation/trex_control_plane/client_utils
parentbafc3ec4b2686cdec4ac1c33f69f7607f368d4ce (diff)
progress in TRexStatelessClient module
mainly at batching support
Diffstat (limited to 'scripts/automation/trex_control_plane/client_utils')
-rwxr-xr-xscripts/automation/trex_control_plane/client_utils/jsonrpc_client.py6
1 files changed, 3 insertions, 3 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 db5ddc51..b8b1734d 100755
--- a/scripts/automation/trex_control_plane/client_utils/jsonrpc_client.py
+++ b/scripts/automation/trex_control_plane/client_utils/jsonrpc_client.py
@@ -171,7 +171,7 @@ class JsonRpcClient(object):
def process_single_response (self, response_json):
if (response_json.get("jsonrpc") != "2.0"):
- return False, "Malfromed Response ({0})".format(str(response))
+ return False, "Malformed Response ({0})".format(str(response))
# error reported by server
if ("error" in response_json):
@@ -182,7 +182,7 @@ class JsonRpcClient(object):
# if no error there should be a result
if ("result" not in response_json):
- return False, "Malfromed Response ({0})".format(str(response))
+ return False, "Malformed Response ({0})".format(str(response))
return True, response_json["result"]
@@ -191,7 +191,7 @@ class JsonRpcClient(object):
def set_verbose(self, mode):
self.verbose = mode
- def disconnect (self):
+ def disconnect(self):
if self.connected:
self.socket.close(linger = 0)
self.context.destroy(linger = 0)