Skip to content

Commit 63e0c9d

Browse files
Alex QiuNéstor Salceda
andauthored
update to compliance v2 task (#148)
Co-authored-by: Néstor Salceda <nestor.salceda@sysdig.com>
1 parent 593d36c commit 63e0c9d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

sysdig/internal/client/secure/benchmark_task.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,19 @@ import (
88
)
99

1010
func (client *sysdigSecureClient) createBenchmarkTaskURL() string {
11-
return fmt.Sprintf("%s/api/benchmarks/v2/tasks", client.URL)
11+
return fmt.Sprintf("%s/api/compliance/v2/tasks", client.URL)
1212
}
1313

1414
func (client *sysdigSecureClient) benchmarkTaskByIdURL(id string) string {
15-
return fmt.Sprintf("%s/api/benchmarks/v2/tasks/%s", client.URL, id)
15+
return fmt.Sprintf("%s/api/compliance/v2/tasks/%s", client.URL, id)
1616
}
1717

1818
func (client *sysdigSecureClient) setBenchmarkTaskEnabledURL(id string, enabled bool) string {
1919
if enabled {
20-
return fmt.Sprintf("%s/api/benchmarks/v2/tasks/%s/enable", client.URL, id)
21-
20+
return fmt.Sprintf("%s/api/compliance/v2/tasks/%s/enable", client.URL, id)
2221
}
2322

24-
return fmt.Sprintf("%s/api/benchmarks/v2/tasks/%s/disable", client.URL, id)
23+
return fmt.Sprintf("%s/api/compliance/v2/tasks/%s/disable", client.URL, id)
2524
}
2625

2726
func (client *sysdigSecureClient) CreateBenchmarkTask(ctx context.Context, task *BenchmarkTask) (*BenchmarkTask, error) {

0 commit comments

Comments
 (0)