Skip to content

Commit

Permalink
frequency issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vikashkuma committed Nov 17, 2023
1 parent 290f25a commit 80e01e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion catchpoint/flatten_all_test_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func flattenScheduleSetting(scheduleSetting ScheduleSetting) []interface{} {
scheduleMap := map[string]interface{}{
"run_schedule_id": scheduleSetting.RunScheduleId,
"maintenance_schedule_id": scheduleSetting.MaintenanceScheduleId,
"frequency": getFrequencyId(scheduleSetting.Frequency.Id),
"frequency": getFrequencyName(scheduleSetting.Frequency.Id),
"node_distribution": getNodeDistributionName(scheduleSetting.TestNodeDistribution.Id),
"node_ids": nodes,
"node_group_ids": nodeGroups,
Expand Down
4 changes: 2 additions & 2 deletions catchpoint/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,10 +419,10 @@ func getFrequencyName(frequency int) string {
}
for id, freq := range frequencies {
if id == frequency {
return freq
return id, freq

Check failure on line 422 in catchpoint/helper.go

View workflow job for this annotation

GitHub Actions / goreleaser

too many return values
}
}
return ""
return -1, ""

Check failure on line 425 in catchpoint/helper.go

View workflow job for this annotation

GitHub Actions / goreleaser

too many return values
}

func getNodeDistributionId(nodeDistribution string) (int, string) {
Expand Down

0 comments on commit 80e01e0

Please sign in to comment.