From e89725f4e7d1d6a596a4cb2134c1ddfff4a68cfb Mon Sep 17 00:00:00 2001 From: Mohamad Choupan Date: Mon, 23 Dec 2024 00:14:03 +0330 Subject: [PATCH] fix: parameters pass --- services/describe/api/jobs.go | 2 +- services/describe/scheduler_describe.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/describe/api/jobs.go b/services/describe/api/jobs.go index cd1696ecb..835a4c3d1 100644 --- a/services/describe/api/jobs.go +++ b/services/describe/api/jobs.go @@ -181,7 +181,7 @@ type RunBenchmarkResponse struct { type ResourceTypeRunDiscoveryRequest struct { ResourceType string `json:"resource_type"` - Parameters map[string][]string `json:"parameters"` + Parameters map[string]string `json:"parameters"` } type RunDiscoveryRequest struct { diff --git a/services/describe/scheduler_describe.go b/services/describe/scheduler_describe.go index 94938d2f4..92560f323 100644 --- a/services/describe/scheduler_describe.go +++ b/services/describe/scheduler_describe.go @@ -269,7 +269,7 @@ func (s *Scheduler) retryFailedJobs(ctx context.Context) error { } func (s *Scheduler) describe(integration integrationapi.Integration, resourceType string, scheduled bool, costFullDiscovery bool, - removeResources bool, parentId *uint, createdBy string, parameters map[string][]string) (*model.DescribeIntegrationJob, error) { + removeResources bool, parentId *uint, createdBy string, parameters map[string]string) (*model.DescribeIntegrationJob, error) { integrationType, ok := integration_type.IntegrationTypes[integration.IntegrationType] if !ok { @@ -341,7 +341,7 @@ func (s *Scheduler) describe(integration integrationapi.Integration, resourceTyp } if parameters == nil { - parameters = make(map[string][]string) + parameters = make(map[string]string) } parametersJsonData, err := json.Marshal(parameters) if err != nil {