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

YAMLLoadWarning: calling yaml.load() without Loader #35

Open
DidierFort opened this issue May 6, 2020 · 4 comments
Open

YAMLLoadWarning: calling yaml.load() without Loader #35

DidierFort opened this issue May 6, 2020 · 4 comments
Assignees
Labels
dependencies Pull requests that update a dependency file

Comments

@DidierFort
Copy link

Hello,

I am getting the following warning:

$ akamai cps update --cn cert.example.com --file ~/cert.example.com.yaml
/home/fortdg/.akamai-cli/src/cli-cps/bin/cps.py:1534: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  jsonFormattedContent = yaml.load(file_content)
/home/fortdg/.akamai-cli/src/cli-cps/bin/cps.py:1536: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  yaml.load(file_content), indent=2)
/home/fortdg/.akamai-cli/src/cli-cps/bin/cps.py:1537: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  certificateContent = yaml.load(file_content)

You are about to update enrollment-id:

Regards,
Didier

@vreddhi
Copy link
Contributor

vreddhi commented May 7, 2020

Are you using the latest version of cps module?

@DidierFort
Copy link
Author

I think I am:
$ akamai cps --version
akamai cps 1.0.8

@vreddhi vreddhi self-assigned this May 7, 2020
@vreddhi vreddhi added the dependencies Pull requests that update a dependency file label May 7, 2020
@vreddhi
Copy link
Contributor

vreddhi commented May 8, 2020

Ah, looks like we need another small update to remove this. We will look to do this as well as the force csr soon

@fkieling
Copy link

fkieling commented Aug 5, 2022

The same warning with current version:

$ akamai cps --version akamai cps 1.0.9

/Users/fkielin1/.akamai-cli/src/cli-cps/bin/cps.py:1533: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. jsonFormattedContent = yaml.load(file_content) /Users/fkielin1/.akamai-cli/src/cli-cps/bin/cps.py:1535: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. yaml.load(file_content), indent=2) /Users/fkielin1/.akamai-cli/src/cli-cps/bin/cps.py:1536: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. certificateContent = yaml.load(file_content)

Will it be fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Development

No branches or pull requests

3 participants