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 7d67aa4 commit 53f42fa
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 err != nil {
errString := err.Error() // Explicitly force err to string
if len(err.Error()) > 0 {
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), errString),
fmt.Sprintf("JobTemplateLaunch with ID %d and template ID %d, failed to complete %s", res.ID, d.Get("job_template_id").(int), err.Error()),

Check failure on line 134 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 53f42fa

Please sign in to comment.