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

[device/accton] Remove the use of python pickle package #5475

Merged
merged 1 commit into from
Nov 5, 2020

Conversation

roylee123
Copy link
Collaborator

@roylee123 roylee123 commented Sep 28, 2020

Signed-off-by: roy_lee [email protected]

- Why I did it
python pickle package is not secure.

- How I did it
Remove pickle relative code, which are used as a cache.

- How to verify it
sfputil show eeprom

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

  • 201811
  • 201911
  • 202006

- Description for the changelog
Pickle is applied to save the order of i2c adapters at installation.
With pickle removed, it just checks the order of i2c buses every time it needs.

@lgtm-com
Copy link

lgtm-com bot commented Sep 28, 2020

This pull request fixes 8 alerts when merging 4f143c9 into e3f8159 - view on LGTM.com

fixed alerts:

  • 4 for Unused local variable
  • 4 for Variable defined multiple times

@lguohan
Copy link
Collaborator

lguohan commented Oct 4, 2020

retest this please

@jleveque jleveque changed the title [device/accton]Remove the use of python pickle package. [device/accton] Remove the use of python pickle package. Nov 5, 2020
@jleveque jleveque changed the title [device/accton] Remove the use of python pickle package. [device/accton] Remove the use of python pickle package Nov 5, 2020
@jleveque jleveque merged commit ce6286e into sonic-net:master Nov 5, 2020
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this pull request Feb 25, 2021
Pickle is applied to save the order of i2c adapters at installation.
With pickle removed, it just checks the order of i2c buses every time it needs.
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.

3 participants