From 8de06bdace29882a99f768d49da73ac1ae2e3d1a Mon Sep 17 00:00:00 2001 From: Mahan Zendedel DH Date: Thu, 19 Dec 2024 15:59:25 +0400 Subject: [PATCH] fix: complie errors --- pkg/cloudql/tables/plugin.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pkg/cloudql/tables/plugin.go b/pkg/cloudql/tables/plugin.go index 4d049616e..2349a4d3a 100644 --- a/pkg/cloudql/tables/plugin.go +++ b/pkg/cloudql/tables/plugin.go @@ -2,12 +2,9 @@ package opengovernance import ( "context" + "github.com/opengovern/opencomply/pkg/cloudql/sdk/config" "github.com/opengovern/opencomply/pkg/cloudql/sdk/extra/utils" "github.com/opengovern/opencomply/pkg/cloudql/sdk/extra/view-sync" - "github.com/opengovern/opencomply/services/rego/internal" - "os" - - "github.com/opengovern/opencomply/pkg/cloudql/sdk/config" "github.com/turbot/steampipe-plugin-sdk/v5/plugin" "github.com/turbot/steampipe-plugin-sdk/v5/plugin/transform" ) @@ -36,9 +33,5 @@ func Plugin(ctx context.Context) *plugin.Plugin { viewSync := view_sync.NewViewSync(extraLogger) go viewSync.Start(ctx) - if os.Getenv("REGO_ENABLED") == "true" { - go internal.NewRegoEngine(ctx, extraLogger) - } - return p }