Skip to content

Commit c9f707b

Browse files
authored
Fix resource identity schema on destroy (#36983)
1 parent 0a65ebd commit c9f707b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/terraform/node_resource_abstract_instance.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ func (n *NodeAbstractResourceInstance) planDestroy(ctx EvalContext, currentState
464464
if !resp.PlannedIdentity.IsNull() {
465465
// Destroying is an operation where we allow identity changes.
466466
diags = diags.Append(n.validateIdentityKnown(resp.PlannedIdentity))
467-
diags = diags.Append(n.validateIdentity(resp.PlannedIdentity, providerSchema.Provider.Identity))
467+
diags = diags.Append(n.validateIdentity(resp.PlannedIdentity, schema.Identity))
468468
}
469469

470470
// We may not have a config for all destroys, but we want to reference

0 commit comments

Comments
 (0)