mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
skip drift rendering for deposed resources
Deposed instances have no current state and are only scheduled for deletion, so there is no reason to try and render drift on these instances.
This commit is contained in:
@@ -374,6 +374,10 @@ func renderChangesDetectedByRefresh(before, after *states.State, schemas *terraf
|
||||
}
|
||||
|
||||
for key, bis := range brs.Instances {
|
||||
if bis.Current == nil {
|
||||
// No current instance to render here
|
||||
continue
|
||||
}
|
||||
var pis *states.ResourceInstance
|
||||
if prs != nil {
|
||||
pis = prs.Instance(key)
|
||||
|
||||
Reference in New Issue
Block a user