Skip to content

Commit

Permalink
Fix - Rookie error
Browse files Browse the repository at this point in the history
  • Loading branch information
GtheSheep authored Oct 20, 2021
2 parents 641529b + 0282a61 commit e0822d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions pkg/dbt_cloud/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package dbt_cloud
import (
"encoding/json"
"fmt"
"log"
"net/http"
"strings"
)
Expand Down Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e0822d8

Please sign in to comment.