Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sfpshow] Gracefully handle improper 'specification_compliance' field (…
…sonic-net#1594) #### What I did Gracefully handle improper 'specification_compliance' field #### How I did it The 'specification_compliance' field of transceiver info is expected to be a string representation of a dictionary. However, there is a chance, upon some kind of platform issue that a vendor's platform API returns something like 'N/A'. In this case, sfpshow would crash. Rather than crash, sfpshow should handle this gracefully and output 'N/A' instead.
- Loading branch information