Skip to content

Commit

Permalink
none
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioan Damian committed Sep 12, 2024
1 parent e002ded commit 7d67aa4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/awx/resource_job_template_launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,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 err != nil {
errString := err.Error() // Explicitly force err to string

Check failure on line 132 in internal/awx/resource_job_template_launch.go

View workflow job for this annotation

GitHub Actions / Build

File is not `gofmt`-ed with `-s` (gofmt)
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), String(err.Error())),
fmt.Sprintf("JobTemplateLaunch with ID %d and template ID %d, failed to complete %s", res.ID, d.Get("job_template_id").(int), errString),

Check failure on line 135 in internal/awx/resource_job_template_launch.go

View workflow job for this annotation

GitHub Actions / Build

printf: non-constant format string in call to github.com/josh-silvas/terraform-provider-awx/tools/utils.Diagf (govet)
)
}
}
Expand Down

0 comments on commit 7d67aa4

Please sign in to comment.