From e08c7b00d980fdf025987c525f97b1b6fd0a69f7 Mon Sep 17 00:00:00 2001 From: Shawn Hurley Date: Fri, 19 Jul 2024 14:43:50 -0400 Subject: [PATCH] :bug: remove error on parsing yaml, skip file instead Signed-off-by: Shawn Hurley --- parser/rule_parser.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parser/rule_parser.go b/parser/rule_parser.go index a467136e..82aeaef7 100644 --- a/parser/rule_parser.go +++ b/parser/rule_parser.go @@ -182,8 +182,8 @@ func (r *RuleParser) LoadRule(filepath string) ([]engine.Rule, map[string]provid // Assume that there is a rule set header. err = yaml.Unmarshal(content, &ruleMap) if err != nil { - r.Log.V(8).Error(err, "unable to load rule set, failed to convert file to yaml", "file", filepath) - return nil, nil, fmt.Errorf("unable to convert file: %s to yaml", filepath) + r.Log.V(8).Info("unable to load rule set, failed to convert file to yaml -- skipping", "file", filepath, "error", err) + return nil, nil, nil } // rules that provide metadata