diff options
author | Jan Gelety <jgelety@cisco.com> | 2019-03-06 21:47:28 +0100 |
---|---|---|
committer | Vratko Polak <vrpolak@cisco.com> | 2019-04-01 10:03:15 +0000 |
commit | 81853d468a1ff40b0e03343b73412aff96a46dd0 (patch) | |
tree | 62a41fd2a58de85132fcc10d5215db567ca46942 /resources/libraries/python/PapiExecutor.py | |
parent | a64513984cf0b336ba314f8eda27890f81978a39 (diff) |
CSIT-1337: Migrate L2Util library from VAT to PAPI
Change-Id: I22879c7bdd100d00216b9528663bf17406169826
Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'resources/libraries/python/PapiExecutor.py')
-rw-r--r-- | resources/libraries/python/PapiExecutor.py | 6 |
1 files changed, 5 insertions, 1 deletions
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, |