Skip to content

Commit

Permalink
refactor: rename suppressCopyOptionsQuoting to suppressQuoting to use…
Browse files Browse the repository at this point in the history
… it elsewhere
  • Loading branch information
guillaumelecerf committed Jun 22, 2024
1 parent 05b7eee commit b3214a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/resources/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func suppressIdentifierQuoting(_, oldValue, newValue string, _ *schema.ResourceD
}

// TODO [SNOW-1325214]: address during stage resource rework
func suppressCopyOptionsQuoting(_, oldValue, newValue string, _ *schema.ResourceData) bool {
func suppressQuoting(_, oldValue, newValue string, _ *schema.ResourceData) bool {
if oldValue == "" || newValue == "" {
return false
} else {
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/stage.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var stageSchema = map[string]*schema.Schema{
Type: schema.TypeString,
Optional: true,
Description: "Specifies the copy options for the stage.",
DiffSuppressFunc: suppressCopyOptionsQuoting,
DiffSuppressFunc: suppressQuoting,
},
"encryption": {
Type: schema.TypeString,
Expand Down

0 comments on commit b3214a1

Please sign in to comment.