Fix resource identity schema on destroy (#36983)

f-terraform-actions
Daniel Banck 1 year ago committed by GitHub
parent 0a65ebdefd
commit c9f707b7fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save