Skip to content
This repository was archived by the owner on Sep 16, 2020. It is now read-only.

Explicitly add Loader to yaml.load #680

Merged
jainnikhil30 merged 5 commits intoansible:masterfrom
jainnikhil30:master
Mar 22, 2019
Merged

Explicitly add Loader to yaml.load #680
jainnikhil30 merged 5 commits intoansible:masterfrom
jainnikhil30:master

Conversation

@jainnikhil30
Copy link
Contributor

Fixes #675 #676

…More info here h[Dttps://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation
@coveralls
Copy link

coveralls commented Mar 21, 2019

Coverage Status

Coverage remained the same at 64.394% when pulling 8c0510c on jainnikhil30:master into 87da51c on ansible:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 64.394% when pulling cf6dd45 on jainnikhil30:master into 87da51c on ansible:master.

self.assertDictContainsSubset(
{"spam": "eggs"},
yaml.load(edit.mock_calls[0][1][0])
yaml.load(edit.mock_calls[0][1][0], Loader=yaml.FullLoader)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there any reason to not make these SafeLoader?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah my bad. I missed that. I will change that too
Thanks.

@jainnikhil30 jainnikhil30 merged commit 8d4dd96 into ansible:master Mar 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants