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:
Michal Polovka 2021-10-18 11:51:46 +02:00
parent ade5b9dee2
commit f11a4c3df5
No known key found for this signature in database
GPG Key ID: 4934889DC424FE12

View File

@ -191,7 +191,7 @@ class UI_driver:
if not NO_YAML and os.path.isfile(path):
try:
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:
pytest.skip("Invalid Web UI config.\n%s" % e)
except IOError as e: