mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-25 01:11:30 +00:00
Use the CSafeLoader YAML loader to catch issues with complex objects
This commit is contained in:
parent
b16530a37d
commit
88b4d023ad
@ -90,7 +90,7 @@ class YamlTest(TestBase):
|
|||||||
|
|
||||||
# convert excuses to source indexed dict
|
# convert excuses to source indexed dict
|
||||||
excuses_dict = {}
|
excuses_dict = {}
|
||||||
for s in yaml.load(excuses_yaml)['sources']:
|
for s in yaml.load(excuses_yaml, Loader=yaml.CSafeLoader)['sources']:
|
||||||
excuses_dict[s['source']] = s
|
excuses_dict[s['source']] = s
|
||||||
|
|
||||||
if 'SHOW_EXCUSES' in os.environ:
|
if 'SHOW_EXCUSES' in os.environ:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user