diff --git a/pkg/rego/embed.go b/pkg/rego/embed.go index d6aa69ded..3a3076934 100644 --- a/pkg/rego/embed.go +++ b/pkg/rego/embed.go @@ -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 }