Skip to content

[Mellanox][platform api] fix a missing module import#6458

Merged
lguohan merged 1 commit intosonic-net:masterfrom
keboliu:eeprom-import-fix
Jan 15, 2021
Merged

[Mellanox][platform api] fix a missing module import#6458
lguohan merged 1 commit intosonic-net:masterfrom
keboliu:eeprom-import-fix

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)

@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 <[email protected]>
@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