From 7d67aa4c3f3b4154d9a0a70fe7549bbe640b0acd Mon Sep 17 00:00:00 2001 From: Ioan Damian Date: Thu, 12 Sep 2024 09:15:36 +0200 Subject: [PATCH] none --- internal/awx/resource_job_template_launch.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/awx/resource_job_template_launch.go b/internal/awx/resource_job_template_launch.go index 749a633d..d557ec08 100644 --- a/internal/awx/resource_job_template_launch.go +++ b/internal/awx/resource_job_template_launch.go @@ -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 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), ) } }