Skip to content

Commit 052723c

Browse files
authored
framework: Fix docs for UseStateForUnknown (#487)
1 parent 0c2fd83 commit 052723c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/terraform-plugin-framework/v1.15.x/docs/plugin/framework/resources/plan-modification.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ func (m useStateForUnknownModifier) MarkdownDescription(_ context.Context) strin
7878

7979
// PlanModifyBool implements the plan modification logic.
8080
func (m useStateForUnknownModifier) PlanModifyBool(_ context.Context, req planmodifier.BoolRequest, resp *planmodifier.BoolResponse) {
81-
// Do nothing if there is no state value.
82-
if req.StateValue.IsNull() {
81+
// Do nothing if there is no state (resource is being created).
82+
if req.State.Raw.IsNull() {
8383
return
8484
}
8585

0 commit comments

Comments
 (0)