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

Getting YAMLLoadWarnings when generating changelogs #17

Closed
geerlingguy opened this issue Jun 16, 2020 · 2 comments
Closed

Getting YAMLLoadWarnings when generating changelogs #17

geerlingguy opened this issue Jun 16, 2020 · 2 comments

Comments

@geerlingguy
Copy link

$ antsibull-changelog release --version 0.9.0
/usr/local/lib/python3.7/site-packages/ansible/cli/doc.py:219: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  doc_data['return'] = yaml.load(doc_data['return'])
/usr/local/lib/python3.7/site-packages/ansible/cli/doc.py:219: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  doc_data['return'] = yaml.load(doc_data['return'])
/usr/local/lib/python3.7/site-packages/ansible/cli/doc.py:219: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  doc_data['return'] = yaml.load(doc_data['return'])
/usr/local/lib/python3.7/site-packages/ansible/cli/doc.py:219: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  doc_data['return'] = yaml.load(doc_data['return'])

Every time I generate a changelog for the K8s collection I'm getting a number of these warnings.

@felixfontein
Copy link
Collaborator

That warning actually comes from ansible-doc binary (run via subprocess), not from the changelog generator. I think it has been fixed in devel, though devel outputs a "this is a dev version" warning. I guess we'll have to wait for the stable-2.10 branch for a no-warning run ;-)

@geerlingguy
Copy link
Author

Ahhh... in that case I'll close this out as a 'works as designed' kind of issue.

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

No branches or pull requests

2 participants