Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SAI-PTF] API Logger - reformat dict in return value (#1688)
Why Base on some requirement, when logging the return value is a dict, need return the value for each key as a string. For example, returning this. ``` "[{ 'client': <sai_thrift.sai_rpc.Client object at 0x7fd9b46861d0>, 'port_oid': 4294967303, 'hw_lane_list': sai_thrift_object_list_t(count=100, idlist=[1,2,34]) }]" ``` it returned as (see the ' around the value too below) ``` "[{ 'client': '<sai_thrift.sai_rpc.Client object at 0x7fd9b46861d0>', 'port_oid': '4294967303', 'hw_lane_list': 'sai_thrift_object_list_t(count=100, idlist=[1,2,34])' }]" ``` How Convert the dict value to string Test: Unit test and DUT test Signed-off-by: richardyu-ms <[email protected]> Signed-off-by: richardyu-ms <[email protected]>
- Loading branch information