Skip to content

Commit

Permalink
refactor: fix path to optional rules (#1524)
Browse files Browse the repository at this point in the history
fix path to optional rules
  • Loading branch information
nikpivkin authored Jan 16, 2024
1 parent 2e65706 commit dd5b541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/rego/embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func LoadPoliciesFromDirs(target fs.FS, paths ...string) (map[string]*ast.Module
return nil
}

if strings.HasSuffix(filepath.Dir(filepath.ToSlash(path)), "policies/advanced/optional") {
if strings.HasSuffix(filepath.Dir(filepath.ToSlash(path)), "advanced/optional") {
return fs.SkipDir
}

Expand Down

0 comments on commit dd5b541

Please sign in to comment.