X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FPapiExecutor.py;h=a0261992e9dc8875466fbf2ccefabcf3b9162e77;hb=374ea2f45d17f361aa612becba657ecaade0d0b5;hp=f6df2004f4a543eae9a3cf760469ad990cf978ab;hpb=2dc5924d35671c01e9aaa4ea6b9ae18bdd184ca8;p=csit.git diff --git a/resources/libraries/python/PapiExecutor.py b/resources/libraries/python/PapiExecutor.py index f6df2004f4..a0261992e9 100644 --- a/resources/libraries/python/PapiExecutor.py +++ b/resources/libraries/python/PapiExecutor.py @@ -457,7 +457,8 @@ class PapiExecutor(object): reply_value = dict() for reply_key, reply_v in api_r.iteritems(): for a_k, a_v in reply_v.iteritems(): - reply_value[a_k] = a_v + reply_value[a_k] = binascii.unhexlify(a_v) \ + if isinstance(a_v, unicode) else a_v reply_dict[reply_key] = reply_value return reply_dict @@ -581,6 +582,9 @@ class PapiExecutor(object): raise papi_reply.append(api_reply_processed) + # Log processed papi reply to be able to check API replies changes + logger.debug("Processed PAPI reply: {reply}".format(reply=papi_reply)) + return PapiResponse(papi_reply=papi_reply, stdout=stdout, stderr=stderr,