diff options
author | Jan Gelety <jgelety@cisco.com> | 2018-12-17 09:56:43 +0100 |
---|---|---|
committer | Jan Gelety <jgelety@cisco.com> | 2018-12-17 09:56:43 +0100 |
commit | 4f9509d2dae42c99f5a5ece8b730bc322d31c948 (patch) | |
tree | a7246339e574f4264a21382bc321b93849cef992 /resources/tools/papi | |
parent | fbe1d6dfbcacd8f3b80449b0d910b60f850b5dcc (diff) |
FIX: Update PAPI to work with string changes in Python API
Change-Id: I3b5f0568b5928cf12aaf2a555f52dd9809348579
Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'resources/tools/papi')
-rw-r--r-- | resources/tools/papi/vpp_papi_provider.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/resources/tools/papi/vpp_papi_provider.py b/resources/tools/papi/vpp_papi_provider.py index 0d934977ce..69b196843a 100644 --- a/resources/tools/papi/vpp_papi_provider.py +++ b/resources/tools/papi/vpp_papi_provider.py @@ -130,7 +130,7 @@ def convert_reply(api_r): """Process API reply / a part of API reply for smooth converting to JSON string. - Apply binascii.hexlify() method for string values. + # Apply binascii.hexlify() method for string values. :param api_r: API reply. :type api_r: Vpp_serializer reply object (named tuple) :returns: Processed API reply / a part of API reply. @@ -143,9 +143,10 @@ def convert_reply(api_r): reply_value = dict() for item in dir(api_r): if not item.startswith('_') and item not in unwanted_fields: - attr_value = getattr(api_r, item) - value = binascii.hexlify(attr_value) \ - if isinstance(attr_value, str) else attr_value + # attr_value = getattr(api_r, item) + # value = binascii.hexlify(attr_value) \ + # if isinstance(attr_value, str) else attr_value + value = getattr(api_r, item) reply_value[item] = value reply_dict[reply_key] = reply_value return reply_dict |