Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 remove error on parsing yaml, skip file instead #666

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions parser/rule_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading