Use YAML safe_load
The arbitrarily powerful YAML load is not necessary. Change-Id: I8bc27a2b0416191638f3ece4dd0d1b3aae8c63cc Partial-Bug: 1819211
This commit is contained in:
parent
e84057a6f5
commit
794e5f3719
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue