Fix load() missing argument Loader
This patch replace yaml.load() by yaml.safe_load() which will fix the TypeError our jobs currently face: TypeError: load() missing 1 required positional argument: 'Loader' Change-Id: I3d238eabf374be895782ebc9e4907db93157a5d4
This commit is contained in:
parent
1c2f076100
commit
0fb2a056c9
@ -66,7 +66,7 @@ def get_input():
|
|||||||
def read_accounts_yaml(path):
|
def read_accounts_yaml(path):
|
||||||
"""Reads a set of accounts from the specified file"""
|
"""Reads a set of accounts from the specified file"""
|
||||||
with open(path, 'r') as yaml_file:
|
with open(path, 'r') as yaml_file:
|
||||||
accounts = yaml.load(yaml_file)
|
accounts = yaml.safe_load(yaml_file)
|
||||||
return accounts
|
return accounts
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user