Skip to content

Commit

Permalink
test fix for golangci-lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioan Damian committed Sep 12, 2024
1 parent ececd97 commit 0794c42
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/awx/resource_job_template_launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,10 @@ 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 len(err.Error()) > 0 {
//nolint:govet
if err != nil {
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 0794c42

Please sign in to comment.