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

[Mellanox] Fix the typo in mlnx-sfpd #3426

Merged
merged 3 commits into from
Sep 10, 2019

Conversation

stephenxs
Copy link
Collaborator

- What I did
Fix the typo in mlnx-sfpd

- How I did it
Fix the typo.

- How to verify it
Inject an error so that the statement can be reached and tested.

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@@ -218,7 +218,7 @@ class MlnxSfpd:

sfp_state = sfp_value_status_dict.get(module_state, STATUS_UNKNOWN)
if sfp_state == STATUS_UNKNOWN:
log_error("unknown module state {} on port {}".format(module_state, port))
log_error("unknown module state {} on port(s) {}".format(module_state, port_list))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the unknown status? it should be either in or out. why is this an error message?

@lguohan lguohan merged commit 9c6b708 into sonic-net:201811 Sep 10, 2019
@stephenxs stephenxs deleted the fix-mlnx-sfpd-typo branch September 30, 2019 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants