diff --git a/testinfra/conftest.py b/testinfra/conftest.py index bb450b3a53..38a131e759 100644 --- a/testinfra/conftest.py +++ b/testinfra/conftest.py @@ -8,7 +8,7 @@ def zuul_data(): data = {} with open('/home/zuul/src/opendev.org/opendev/system-config/inventory/base/gate-hosts.yaml') as f: - inventory = yaml.load(f) + inventory = yaml.safe_load(f) data['inventory'] = inventory zuul_extra_data_file = os.environ.get('TESTINFRA_EXTRA_DATA')