Skip to content

Commit

Permalink
fix: parameters pass
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadch91 committed Dec 22, 2024
1 parent 2a3e41e commit e89725f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion services/describe/api/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions services/describe/scheduler_describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit e89725f

Please sign in to comment.