mirror of
https://github.com/hashicorp/terraform.git
synced 2026-05-28 04:03:27 -04:00
Fix resource identity schema on destroy (#36983)
This commit is contained in:
parent
0a65ebdefd
commit
c9f707b7fc
1 changed files with 1 additions and 1 deletions
|
|
@ -464,7 +464,7 @@ func (n *NodeAbstractResourceInstance) planDestroy(ctx EvalContext, currentState
|
|||
if !resp.PlannedIdentity.IsNull() {
|
||||
// Destroying is an operation where we allow identity changes.
|
||||
diags = diags.Append(n.validateIdentityKnown(resp.PlannedIdentity))
|
||||
diags = diags.Append(n.validateIdentity(resp.PlannedIdentity, providerSchema.Provider.Identity))
|
||||
diags = diags.Append(n.validateIdentity(resp.PlannedIdentity, schema.Identity))
|
||||
}
|
||||
|
||||
// We may not have a config for all destroys, but we want to reference
|
||||
|
|
|
|||
Loading…
Reference in a new issue