Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

globals().update(FactoryLoader().load(yaml.load(yml))) is deprecated #1

Open
jessicagarrison opened this issue Mar 20, 2024 · 0 comments

Comments

@jessicagarrison
Copy link

Apologies to the repo owner. I needed to pick one repo to document the issue. Feel free to ignore.
From file: https://github.com/JNPRAutomate/vmtrace/blob/master/vmtrace.py

  • globals().update(FactoryLoader().load(yaml.load(yml)))
  • globals().update(FactoryLoader().load(yaml.load(yaml_data, Loader=yaml.FullLoader)))

Error I saw in Junos OS:
YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.

Changing the line, as described above, fixed the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant