fix(userspace/engine): avoid reading duplicate exception values

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
Jason Dellaluce 2022-09-12 11:29:38 +00:00 committed by poiana
parent ccd3c896de
commit cf9baea624

View File

@ -139,9 +139,9 @@ static void decode_exception_info_entry(
if (val.IsSequence())
{
out.is_list = true;
rule_loader::rule_exception_info::entry tmp;
for(const YAML::Node& v : val)
{
rule_loader::rule_exception_info::entry tmp;
rule_loader::context lctx(v, rule_loader::context::EXCEPTION, "", valctx);
// Optional is always false once you get past the outer values