remove planned resources from refreshed state

This commit is contained in:
James Bardin 2020-09-18 16:45:39 -04:00
parent 72aea4bc64
commit 7951b55f88
1 changed files with 2 additions and 1 deletions

View File

@ -567,7 +567,8 @@ The -target option is not for routine use, and is provided only for exceptional
}
p.Changes = c.changes
p.State = c.refreshState
c.refreshState.SyncWrapper().RemovePlannedResourceInstanceObjects()
p.State = c.refreshState.DeepCopy()
// replace the working state with the updated state, so that immediate calls
// to Apply work as expected.