From 526b852cf3b2d40a71f0f8fad359b21970c2946e Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Fri, 28 Oct 2022 08:31:03 -0700 Subject: [PATCH] fix: weird formatting --- pkg/resources/task.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkg/resources/task.go b/pkg/resources/task.go index 82da757ca9..93631303f7 100644 --- a/pkg/resources/task.go +++ b/pkg/resources/task.go @@ -17,7 +17,6 @@ import ( const ( taskIDDelimiter = '|' - AllowOverlappingExecution = "allow_overlapping_execution" ) var taskSchema = map[string]*schema.Schema{ @@ -473,7 +472,7 @@ func CreateTask(d *schema.ResourceData, meta interface{}) error { builder.WithComment(v.(string)) } - if v, ok := d.GetOk(AllowOverlappingExecution); ok { + if v, ok := d.GetOk("allow_overlapping_execution"); ok { builder.WithAllowOverlappingExecution(v.(bool)) } @@ -651,9 +650,9 @@ func UpdateTask(d *schema.ResourceData, meta interface{}) error { } } - if d.HasChange(AllowOverlappingExecution) { + if d.HasChange("allow_overlapping_execution") { var q string - _, new := d.GetChange(AllowOverlappingExecution) + _, new := d.GetChange("allow_overlapping_execution") flag := new.(bool) if flag { q = builder.SetAllowOverlappingExecutionParameter() @@ -662,7 +661,7 @@ func UpdateTask(d *schema.ResourceData, meta interface{}) error { } err := snowflake.Exec(db, q) if err != nil { - return errors.Wrapf(err, "error updating %s on task %v", AllowOverlappingExecution, d.Id()) + return errors.Wrapf(err, "error updating task %v", d.Id()) } }