Merge pull request #29734 from hashicorp/jbardin/missing-change

Check for nil change during apply
This commit is contained in:
James Bardin 2021-10-12 12:22:51 -04:00 committed by GitHub
commit ef8f1b3e38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ func (n *NodeDestroyResourceInstance) managedResourceExecute(ctx EvalContext) (d
changeApply, err = n.readDiff(ctx, providerSchema)
diags = diags.Append(err)
if diags.HasErrors() {
if changeApply == nil || diags.HasErrors() {
return diags
}