diff options
author | 2016-05-20 23:32:37 +0300 | |
---|---|---|
committer | 2016-05-20 23:32:37 +0300 | |
commit | b384c31c5ecc1eafe3d21dda950fa500857731c7 (patch) | |
tree | 260978d1bb54ce854b16a871cabb4bdc54c7d021 /scripts/automation/trex_control_plane/stf | |
parent | 57185f8bec5e02b6e30513da412c53892d2b6281 (diff) |
trex_client: de-unicode get_trex_path
Diffstat (limited to 'scripts/automation/trex_control_plane/stf')
-rwxr-xr-x | scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py b/scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py index 0aac043e..1a2fd340 100755 --- a/scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py +++ b/scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py @@ -101,6 +101,7 @@ class CTRexClient(object): ''' Connects to Master daemon via JsonRPC. This daemon controls TRex daemon server. + Return true if success, false if fail ''' try: print('Connecting to Master daemon @ %s ...' % self.master_daemon_path) @@ -115,7 +116,8 @@ class CTRexClient(object): def connect_server(self): ''' Connects to TRex daemon server via JsonRPC. - This daemon controls TRex. (start/stop + This daemon controls TRex. (start/stop) + Return true if success, false if fail ''' try: print('Connecting to TRex daemon server @ %s ...' % self.trex_server_path) @@ -359,7 +361,7 @@ class CTRexClient(object): Returns TRex path on server ''' try: - return self.master_daemon.get_trex_path() + return self.master_daemon.get_trex_path().encode('ascii', errors='replace') except AppError as err: self._handle_AppError_exception(err.args[0]) finally: |