Merge "More yaml.safe_load() in testinfra/conftest.py"

This commit is contained in:
Zuul 2021-10-13 23:46:14 +00:00 committed by Gerrit Code Review
commit e2fdcc73fd

View File

@ -14,7 +14,7 @@ def zuul_data():
zuul_extra_data_file = os.environ.get('TESTINFRA_EXTRA_DATA') zuul_extra_data_file = os.environ.get('TESTINFRA_EXTRA_DATA')
if os.path.exists(zuul_extra_data_file): if os.path.exists(zuul_extra_data_file):
with open(zuul_extra_data_file, 'r') as f: with open(zuul_extra_data_file, 'r') as f:
extra = yaml.load(f) extra = yaml.safe_load(f)
data['extra'] = extra data['extra'] = extra
return data return data