Use YAML safe_load

The arbitrarily powerful YAML load is not necessary.

Change-Id: I8bc27a2b0416191638f3ece4dd0d1b3aae8c63cc
Partial-Bug: 1819211
This commit is contained in:
Eric K 2019-03-13 10:55:10 -07:00
parent e84057a6f5
commit 794e5f3719
1 changed files with 2 additions and 2 deletions

View File

@ -1637,12 +1637,12 @@ class ExecutionDriver(object):
# load selected named args
for arg_name in named_args:
if arg_name in structured_args['named']:
named_args[arg_name] = yaml.load(
named_args[arg_name] = yaml.safe_load(
named_args[arg_name])
# load selected positional args
for (index, arg) in enumerate(positional_args):
if index in structured_args['positional']:
positional_args[index] = yaml.load(arg)
positional_args[index] = yaml.safe_load(arg)
except yaml.parser.ParserError as e:
LOG.exception(e)
raise exception.CongressException(