Merge pull request #13806 from ninjadq/fix_python_yaml_load

Fix pythom yaml load to safe_load
This commit is contained in:
Qian Deng 2020-12-21 16:04:12 +08:00 committed by GitHub
commit 31138f12b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ def parse_versions():
if not versions_file_path.is_file():
return {}
with open('versions') as f:
versions = yaml.load(f)
versions = yaml.safe_load(f)
return versions
@ -92,7 +92,7 @@ def parse_yaml_config(config_file_path, with_notary, with_trivy, with_chartmuseu
'''
with open(config_file_path) as f:
configs = yaml.load(f)
configs = yaml.safe_load(f)
config_dict = {
'portal_url': 'http://portal:8080',