Commit e955e58
authored
get_error_description should return 'OK' instead of None when there is no error (sonic-net#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 <[email protected]>1 parent 0f2e22f commit e955e58
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3152 | 3152 | | |
3153 | 3153 | | |
3154 | 3154 | | |
3155 | | - | |
| 3155 | + | |
3156 | 3156 | | |
3157 | 3157 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3066 | 3066 | | |
3067 | 3067 | | |
3068 | 3068 | | |
3069 | | - | |
| 3069 | + | |
3070 | 3070 | | |
3071 | 3071 | | |
3072 | 3072 | | |
| |||
0 commit comments