summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/server
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-08-02 02:51:20 +0300
committerYaroslav Brustinov <ybrustin@cisco.com>2016-08-02 02:51:20 +0300
commitac53e9537c7b7828c8f8cd51a0fd709da87da88e (patch)
treedf6da4cc4ad1871a39e650a9980e7048a5758dde /scripts/automation/trex_control_plane/server
parent511854b7a8fe289603cb4475a39d713244846ebf (diff)
stf daemon another python3 fix
Diffstat (limited to 'scripts/automation/trex_control_plane/server')
-rwxr-xr-xscripts/automation/trex_control_plane/server/trex_server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/server/trex_server.py b/scripts/automation/trex_control_plane/server/trex_server.py
index cb2fd495..2b718a69 100755
--- a/scripts/automation/trex_control_plane/server/trex_server.py
+++ b/scripts/automation/trex_control_plane/server/trex_server.py
@@ -173,7 +173,7 @@ class CTRexServer(object):
try:
with open(filepath, 'rb') as f:
file_content = f.read()
- return binascii.b2a_base64(file_content)
+ return binascii.b2a_base64(file_content).decode(errors='replace')
except Exception as e:
err_str = "Can't get requested file %s: %s" % (filepath, e)
logger.error(err_str)