Commit 000f89b
get_error_description should return 'OK' instead of None when there is no error (#518)
- Description
The "get_error_description" function should return 'OK' instead of 'None' when there are no errors.
- Motivation and Context
When there are no errors on the cable, get_error_description currently returns 'None'. In this case, we should return 'OK' so that the CLI (show interface transceiver error-description) provides a proper output.
- How Has This Been Tested?
Call this API directly on different cables with different error statuses.
Signed-off-by: Kebo Liu <kebol@nvidia.com>1 parent 101fe2e commit 000f89b
File tree
2 files changed
+2
-2
lines changed- sonic_platform_base/sonic_xcvr/api/public
- tests/sonic_xcvr
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2724 | 2724 | | |
2725 | 2725 | | |
2726 | 2726 | | |
2727 | | - | |
| 2727 | + | |
2728 | 2728 | | |
2729 | 2729 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2664 | 2664 | | |
2665 | 2665 | | |
2666 | 2666 | | |
2667 | | - | |
| 2667 | + | |
2668 | 2668 | | |
2669 | 2669 | | |
2670 | 2670 | | |
| |||
0 commit comments