Move from yaml.load to yaml.safe_load
yaml.load is equally powerful as python pickles, and we don't need that level of power for the ostree yaml files. Better safe than sorry. Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
parent
dc692bc604
commit
8e88373a82
2 changed files with 2 additions and 2 deletions
|
|
@ -165,7 +165,7 @@ class OstreeTreeScriptTest(helpers.PungiTestCase):
|
|||
|
||||
with open(treefile, 'r') as f:
|
||||
# Read initial content from YAML file
|
||||
treefile_content = yaml.load(f)
|
||||
treefile_content = yaml.safe_load(f)
|
||||
original_repos = treefile_content['repos']
|
||||
original_ref = treefile_content['ref']
|
||||
replacing_ref = original_ref + '-changed'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue