Skip to content

Commit

Permalink
Fix golangci-lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioan Damian committed Sep 12, 2024
1 parent a1e10cd commit fa86a6e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/awx/resource_job_template_launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package awx
import (
"context"
"encoding/json"
"fmt"
"strconv"
"time"

Expand Down Expand Up @@ -129,10 +128,9 @@ func resourceJobTemplateLaunchCreate(ctx context.Context, d *schema.ResourceData
if d.Get("wait_for_completion").(bool) {
err = jobTemplateLaunchWait(ctx, client.JobService, res, d.Timeout(schema.TimeoutCreate))
if err != nil {
//nolint:govet
return utils.Diagf(
"JobTemplate execution failure",
fmt.Sprintf("JobTemplateLaunch with ID %d and template ID %d, failed to complete %s", res.ID, d.Get("job_template_id").(int), err.Error()),
"JobTemplateLaunch with ID %d and template ID %d, failed to complete %s", res.ID, d.Get("job_template_id").(int), err.Error(),
)
}
}
Expand Down

0 comments on commit fa86a6e

Please sign in to comment.