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][platform api] fix a missing module import #6458

Merged
merged 1 commit into from
Jan 15, 2021

Conversation

keboliu
Copy link
Collaborator

@keboliu keboliu commented Jan 15, 2021

- Why I did it

“time" module was missed to be imported and will cause an error when the branch hit.

- How I did it

Add "import time"

- How to verify it

make the condition to be true by mocking and let the code run, can see it run w/o error.

- Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012

- Description for the changelog

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

Signed-off-by: Kebo Liu <kebol@nvidia.com>
@jleveque
Copy link
Contributor

@keboliu: I assume this also needs to be cherry-picked into the 202012 branch, no?

@keboliu
Copy link
Collaborator Author

keboliu commented Jan 15, 2021

@keboliu: I assume this also needs to be cherry-picked into the 202012 branch, no?

202012 also need it, I labeled it. thanks.

@lguohan lguohan merged commit 1b29805 into sonic-net:master Jan 15, 2021
lguohan pushed a commit that referenced this pull request Jan 15, 2021
“time" module was missed to be imported and will cause an error when the branch hit.

Signed-off-by: Kebo Liu <kebol@nvidia.com>
@keboliu keboliu deleted the eeprom-import-fix branch January 16, 2021 01:10
@abdosi
Copy link
Contributor

abdosi commented Feb 19, 2021

@keboliu Please create PR for 201911.

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.

5 participants