Fix yaml.safe_load() and allow py35 tests to complete

Change-Id: Id1aa21f4b6de67a6e03ced2352b45d1080e7760c
This commit is contained in:
Alex Kavanagh 2021-10-14 17:37:25 +01:00
parent e0ed80527f
commit 90fa306577
2 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,7 @@ def get_action_parser(actions_yaml_path, action_name,
get_services=_get_services):
"""Make an argparse.ArgumentParser seeded from actions.yaml definitions."""
with open(actions_yaml_path) as fh:
doc = yaml.load(fh)[action_name]["description"]
doc = yaml.safe_load(fh)[action_name]["description"]
parser = argparse.ArgumentParser(description=doc)
parser.add_argument("--services", default=get_services())
# TODO: Add arguments for params defined in the actions.yaml

View File

@ -7,6 +7,7 @@
# requirements. They are intertwined. Also, Zaza itself should specify
# all of its own requirements and if it doesn't, fix it there.
#
cffi==1.14.6; python_version < '3.6' # cffi 1.15.0 drops support for py35.
setuptools<50.0.0 # https://github.com/pypa/setuptools/commit/04e3df22df840c6bb244e9b27bc56750c44b7c85
requests>=2.18.4