Skip to content

Commit

Permalink
Handle multierror in runtime security policy check (#7554)
Browse files Browse the repository at this point in the history
  • Loading branch information
lebauce authored Mar 2, 2021
1 parent 8e86ae2 commit a2e73ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/security-agent/app/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func checkPolicies(cmd *cobra.Command, args []string) error {
model := &sprobe.Model{}
ruleSet := rules.NewRuleSet(model, model.NewEvent, opts)

if err := rules.LoadPolicies(cfg.PoliciesDir, ruleSet); err != nil {
if err := rules.LoadPolicies(cfg.PoliciesDir, ruleSet); err.ErrorOrNil() != nil {
return err
}

Expand Down

0 comments on commit a2e73ea

Please sign in to comment.