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

yaml.load() is deprecated in latest versions of PyYAML module #3526

Merged
merged 1 commit into from
Oct 11, 2019

Conversation

FuzailBrcm
Copy link
Contributor

- What I did
From 5.1 version of PyYAML python module, yaml.load() API is deprecated. Code should be compatible to support both the versions, else error/warning messages are seen like below,

2019-07-02 08:25:35,284 – INFO: [D1] /usr/local/lib/python2.7/dist-packages/sonic_device_util.py:44: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.

- How I did it
Made the code compatible with both the syntax based on the module version

- How to verify it
Build and boot should not throw any warnings/errors such as the one mentioned above.

- Description for the changelog
yaml.load() is deprecated in latest versions of PyYAML module

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

@lguohan
Copy link
Collaborator

lguohan commented Sep 27, 2019

retest vsimage please

@jleveque
Copy link
Contributor

Retest vsimage please

@jleveque
Copy link
Contributor

Retest vsimage please

2 similar comments
@FuzailBrcm
Copy link
Contributor Author

Retest vsimage please

@FuzailBrcm
Copy link
Contributor Author

Retest vsimage please

@FuzailBrcm
Copy link
Contributor Author

Retest this please

@FuzailBrcm
Copy link
Contributor Author

Retest vs please

@FuzailBrcm
Copy link
Contributor Author

Retest vsimage plaease

@lguohan
Copy link
Collaborator

lguohan commented Oct 8, 2019

retest vsimage please

@lguohan lguohan merged commit bdf7d24 into sonic-net:master Oct 11, 2019
@FuzailBrcm FuzailBrcm deleted the sonic-5957 branch October 18, 2019 07:09
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