diff --git a/ipatests/test_webui/ui_driver.py b/ipatests/test_webui/ui_driver.py index da48eeddf..011278128 100644 --- a/ipatests/test_webui/ui_driver.py +++ b/ipatests/test_webui/ui_driver.py @@ -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(stream=conf, Loader=yaml.FullLoader) + cls.config = yaml.safe_load(stream=conf) except yaml.YAMLError as e: pytest.skip("Invalid Web UI config.\n%s" % e) except IOError as e: