From 711b2493a93e54662421e332be4ae37e008dfe8f Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Mon, 13 Jul 2020 14:08:21 +1000 Subject: [PATCH] testinfra: silence yaml.load() warnings Switch to safe_load to silence warnings in output Change-Id: If91f79a4648920999de8e6bf6e0c9fec82fde233 --- testinfra/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')