Skip to content

Commit

Permalink
Better description of SchemaDiffSuppressFund
Browse files Browse the repository at this point in the history
  • Loading branch information
abitrolly committed Mar 16, 2022
1 parent 51988f7 commit 2d7b1c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions helper/schema/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,12 +295,12 @@ const (
SchemaConfigModeBlock
)

// SchemaDiffSuppressFunc is a function which can be used to determine
// whether a detected diff on a schema element is "valid" or not, and
// suppress it from the plan if necessary.
// SchemaDiffSuppressFunc is a function which can be used to analyze the diff
// between the value of remote resource and stored state to suppress update of
// schema element from the plan if necessary.
//
// Return true if the diff should be suppressed, false to retain it.
type SchemaDiffSuppressFunc func(k, oldValue, newValue string, d *ResourceData) bool
type SchemaDiffSuppressFunc func(k, remote, state string, d *ResourceData) bool

// SchemaDefaultFunc is a function called to return a default value for
// a field.
Expand Down

0 comments on commit 2d7b1c2

Please sign in to comment.