Skip to content

Commit

Permalink
🐛 remove error on parsing yaml, skip file instead (konveyor#666)
Browse files Browse the repository at this point in the history
Signed-off-by: Shawn Hurley <shawn@hurley.page>
  • Loading branch information
shawn-hurley authored Jul 19, 2024
1 parent e63b803 commit 69344bd
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 69344bd

Please sign in to comment.