Skip to content

Commit 6e8b669

Browse files
authored
Better description of SchemaDiffSuppressFund
1 parent b35892a commit 6e8b669

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
@@ -257,12 +257,12 @@ const (
257257
SchemaConfigModeBlock
258258
)
259259

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

267267
// SchemaDefaultFunc is a function called to return a default value for
268268
// a field.

0 commit comments

Comments
 (0)