testinfra: silence yaml.load() warnings
Switch to safe_load to silence warnings in output Change-Id: If91f79a4648920999de8e6bf6e0c9fec82fde233
This commit is contained in:
parent
a020568ee5
commit
711b2493a9
@ -8,7 +8,7 @@ def zuul_data():
|
|||||||
data = {}
|
data = {}
|
||||||
|
|
||||||
with open('/home/zuul/src/opendev.org/opendev/system-config/inventory/base/gate-hosts.yaml') as f:
|
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
|
data['inventory'] = inventory
|
||||||
|
|
||||||
zuul_extra_data_file = os.environ.get('TESTINFRA_EXTRA_DATA')
|
zuul_extra_data_file = os.environ.get('TESTINFRA_EXTRA_DATA')
|
||||||
|
Loading…
Reference in New Issue
Block a user