From 0282a611538d1e0d4866e5ce59e0c99a8462042c Mon Sep 17 00:00:00 2001 From: Gary James Date: Wed, 20 Oct 2021 21:06:52 +0100 Subject: [PATCH] Fix - Rookie error --- pkg/dbt_cloud/job.go | 3 --- pkg/resources/job.go | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/dbt_cloud/job.go b/pkg/dbt_cloud/job.go index 5ca59a96..5b059157 100644 --- a/pkg/dbt_cloud/job.go +++ b/pkg/dbt_cloud/job.go @@ -3,7 +3,6 @@ package dbt_cloud import ( "encoding/json" "fmt" - "log" "net/http" "strings" ) @@ -165,8 +164,6 @@ func (c *Client) UpdateJob(jobId string, job Job) (*Job, error) { } req, err := http.NewRequest("POST", fmt.Sprintf("%s/jobs/%s/", c.AccountURL, jobId), strings.NewReader(string(jobData))) - log.Printf(fmt.Sprintf("%s/jobs/%s/", c.AccountURL, jobId)) - log.Printf(string(jobData)) if err != nil { return nil, err } diff --git a/pkg/resources/job.go b/pkg/resources/job.go index f24575a4..8c3be2ce 100644 --- a/pkg/resources/job.go +++ b/pkg/resources/job.go @@ -190,7 +190,7 @@ func resourceJobUpdate(ctx context.Context, d *schema.ResourceData, m interface{ c := m.(*dbt_cloud.Client) jobId := d.Id() - if d.HasChange("name") || d.HasChange("dbt_version") { + if d.HasChange("name") || d.HasChange("dbt_version") || d.HasChange("num_threads") || d.HasChange("target_name") || d.HasChange("execute_steps") { job, err := c.GetJob(jobId) if err != nil { return diag.FromErr(err)