X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FPapiExecutor.py;h=0e0a9332c4be01f5603c36b0a242866b0e4deabf;hb=20cc67d5f23a7f4e05b08012bf3d3a63be4bcf63;hp=d651e78cca20f68169cfddf0fa14e948afaad93c;hpb=8b1bead7b4b70e3ff4e7d4cb82940695d763ed2d;p=csit.git diff --git a/resources/libraries/python/PapiExecutor.py b/resources/libraries/python/PapiExecutor.py index d651e78cca..0e0a9332c4 100644 --- a/resources/libraries/python/PapiExecutor.py +++ b/resources/libraries/python/PapiExecutor.py @@ -442,13 +442,13 @@ class PapiSocketExecutor(object): cmd = 'cli_inband' args = dict(cmd=cli_cmd) err_msg = "Failed to run 'cli_inband {cmd}' PAPI command on host " \ - "{host}".format(host=node['host'], cmd=cmd) + "{host}".format(host=node['host'], cmd=cli_cmd) with PapiSocketExecutor(node, remote_vpp_socket) as papi_exec: reply = papi_exec.add(cmd, **args).get_reply(err_msg)["reply"] if log: logger.info( "{cmd} ({host} - {remote_vpp_socket}):\n{reply}". - format(cmd=cmd, reply=reply, + format(cmd=cmd, reply=reply.encode('utf-8').strip(), remote_vpp_socket=remote_vpp_socket, host=node['host'])) return reply