summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/client
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2015-11-13 14:28:54 +0200
committerimarom <imarom@cisco.com>2015-11-13 14:28:54 +0200
commit1f98e85aba1fb41110ea9743a69c075eeb60f476 (patch)
treee5c4216361e75df62d4790ec50776451c979b5ea /scripts/automation/trex_control_plane/client
parent57e67fd2ae248039951798978cc8c1c219c3d752 (diff)
parent45b71cff9d0465b77f82e4cd40b64a9f3183c1c7 (diff)
Merge branch 'rpc_intg1' of csi-sceasr-b45:/auto/proj-pcube-b/apps/PL-b/tools/repo//trex-core into rpc_intg1
Diffstat (limited to 'scripts/automation/trex_control_plane/client')
-rw-r--r--scripts/automation/trex_control_plane/client/trex_async_client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/client/trex_async_client.py b/scripts/automation/trex_control_plane/client/trex_async_client.py
index 72cce5aa..d13513bf 100644
--- a/scripts/automation/trex_control_plane/client/trex_async_client.py
+++ b/scripts/automation/trex_control_plane/client/trex_async_client.py
@@ -181,7 +181,8 @@ class CTRexAsyncClient():
self.socket.setsockopt(zmq.SUBSCRIBE, '')
while self.active:
- msg = json.loads(self.socket.recv_string())
+ line = self.socket.recv_string();
+ msg = json.loads(line)
key = msg['name']
self.raw_snapshot[key] = msg['data']