diff --git a/internal/awx/resource_job_template_launch.go b/internal/awx/resource_job_template_launch.go index 5bd440ea..b0df6f6a 100644 --- a/internal/awx/resource_job_template_launch.go +++ b/internal/awx/resource_job_template_launch.go @@ -128,7 +128,7 @@ 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 && len(err) > 0 { + 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()),