mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
remove redundant readResourceInstanceState
This commit is contained in:
parent
01628f0d50
commit
a7987dec9f
@ -264,12 +264,6 @@ func (n *NodeApplyableResourceInstance) managedResourceExecute(ctx EvalContext)
|
||||
return diags
|
||||
}
|
||||
|
||||
state, readDiags = n.readResourceInstanceState(ctx, n.ResourceInstanceAddr())
|
||||
diags = diags.Append(readDiags)
|
||||
if diags.HasErrors() {
|
||||
return diags
|
||||
}
|
||||
|
||||
diffApply = reducePlan(addr, diffApply, false)
|
||||
// reducePlan may have simplified our planned change
|
||||
// into a NoOp if it only requires destroying, since destroying
|
||||
|
Loading…
Reference in New Issue
Block a user