Skip to content

Commit

Permalink
Merge pull request #2330 from opengovern/fix-tasks
Browse files Browse the repository at this point in the history
fix: fix list query params api
  • Loading branch information
artaasadi authored Dec 29, 2024
2 parents 61b769d + 16425a8 commit 82f6353
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/metadata/http_routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@ func (h HttpHandler) ListQueryParameters(ctx echo.Context) error {
queryID := ctx.QueryParam("query_id")
controlID := ctx.QueryParam("control_id")

complianceURL := strings.ReplaceAll(h.cfg.Scheduler.BaseURL, "%NAMESPACE%", h.cfg.Compliance.BaseURL)
complianceURL := strings.ReplaceAll(h.cfg.Compliance.BaseURL, "%NAMESPACE%", h.cfg.OpengovernanceNamespace)
complianceClient := complianceClient.NewComplianceClient(complianceURL)
inventoryURL := strings.ReplaceAll(h.cfg.Scheduler.BaseURL, "%NAMESPACE%", h.cfg.Inventory.BaseURL)
inventoryURL := strings.ReplaceAll(h.cfg.Inventory.BaseURL, "%NAMESPACE%", h.cfg.OpengovernanceNamespace)
inventoryClient := inventoryClient.NewInventoryServiceClient(inventoryURL)

controls, err := complianceClient.ListControl(clientCtx, nil, nil)
Expand Down

0 comments on commit 82f6353

Please sign in to comment.