From d76fb17fba76fd5c013a0357456452d069e383bb Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Wed, 13 Oct 2021 21:57:17 +0000 Subject: [PATCH] More yaml.safe_load() in testinfra/conftest.py Previous change If91f79a4648920999de8e6bf6e0c9fec82fde233 replaced one of the instances of yaml.load() in this file with safe_load() in order to silence what were then warnings. Now they're errors with current PyYAML, so go ahead and update the other one. Change-Id: If9f839f60cd71be8be141423ef2b93884d8aeba7 --- testinfra/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testinfra/conftest.py b/testinfra/conftest.py index 38a131e759..3b6d0793b2 100644 --- a/testinfra/conftest.py +++ b/testinfra/conftest.py @@ -14,7 +14,7 @@ def zuul_data(): zuul_extra_data_file = os.environ.get('TESTINFRA_EXTRA_DATA') if os.path.exists(zuul_extra_data_file): with open(zuul_extra_data_file, 'r') as f: - extra = yaml.load(f) + extra = yaml.safe_load(f) data['extra'] = extra return data