Skip to content

Commit 270a3b3

Browse files
committed
framework: Fix docs for UseStateForUnknown
1 parent c484b6d commit 270a3b3

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)