File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
sysdig/internal/client/secure Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -8,20 +8,19 @@ import (
88)
99
1010func (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
1414func (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
1818func (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
2726func (client * sysdigSecureClient ) CreateBenchmarkTask (ctx context.Context , task * BenchmarkTask ) (* BenchmarkTask , error ) {
You can’t perform that action at this time.
0 commit comments