mirror of
https://github.com/goharbor/harbor
synced 2025-04-26 00:12:37 +00:00
Merge pull request #13806 from ninjadq/fix_python_yaml_load
Fix pythom yaml load to safe_load
This commit is contained in:
commit
31138f12b0
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user