Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[action] [PR:518] get_error_description should return 'OK' instead of None when there is no error (#518) #524

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

mssonicbld
Copy link
Collaborator

  • 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]

…s 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]>
@mssonicbld
Copy link
Collaborator Author

Original PR: #518

@mssonicbld mssonicbld merged commit 000f89b into sonic-net:202405 Dec 18, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants