Skip to content

Commit 2d7b1c2

Browse files
committed
Better description of SchemaDiffSuppressFund
1 parent 51988f7 commit 2d7b1c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

helper/schema/schema.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,12 +295,12 @@ const (
295295
SchemaConfigModeBlock
296296
)
297297

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

305305
// SchemaDefaultFunc is a function called to return a default value for
306306
// a field.

0 commit comments

Comments
 (0)