Merge "Replaces yaml.load() with yaml.safe_load()"

This commit is contained in:
Jenkins 2017-02-06 20:01:26 +00:00 committed by Gerrit Code Review
commit d14997c24f
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ def get_deployer_notes(stig_id):
_, metadata, text = yaml_boundary.split(rst_file, 2)
# Assemble the metadata and the text from the deployer note.
post = yaml.load(metadata)
post = yaml.safe_load(metadata)
post['content'] = text
return post

View File

@ -99,7 +99,7 @@ def get_deployer_notes(stig_id):
_, metadata, text = yaml_boundary.split(rst_file, 2)
# Assemble the metadata and the text from the deployer note.
post = yaml.load(metadata)
post = yaml.safe_load(metadata)
post['content'] = text
return post