mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 08:41:55 -06:00
ipatests: webui: Specify configuration loader
Default YAML loader has been deprecated in PyYAML-6.0, specify loader explicitly. Fixes: https://pagure.io/freeipa/issue/9009 Signed-off-by: Michal Polovka <mpolovka@redhat.com> Reviewed-By: Michal Polovka <mpolovka@redhat.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
parent
ade5b9dee2
commit
f11a4c3df5
@ -191,7 +191,7 @@ class UI_driver:
|
|||||||
if not NO_YAML and os.path.isfile(path):
|
if not NO_YAML and os.path.isfile(path):
|
||||||
try:
|
try:
|
||||||
with open(path, 'r') as conf:
|
with open(path, 'r') as conf:
|
||||||
cls.config = yaml.load(conf)
|
cls.config = yaml.load(stream=conf, Loader=yaml.FullLoader)
|
||||||
except yaml.YAMLError as e:
|
except yaml.YAMLError as e:
|
||||||
pytest.skip("Invalid Web UI config.\n%s" % e)
|
pytest.skip("Invalid Web UI config.\n%s" % e)
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user