Skip to content

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

@DidierFort

Description

@DidierFort

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

Metadata

Metadata

Assignees

Labels

dependenciesPull requests that update a dependency file

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions