don't use same state in Validate for refreshState

This commit is contained in:
James Bardin 2020-09-30 11:49:04 -04:00
parent 8c699fbe32
commit 8dc6f518c2
1 changed files with 2 additions and 3 deletions

View File

@ -743,12 +743,11 @@ func (c *Context) graphWalker(operation walkOperation) *ContextGraphWalker {
switch operation {
case walkValidate:
// validate should not use any state
s := states.NewState()
state = s.SyncWrapper()
state = states.NewState().SyncWrapper()
// validate currently uses the plan graph, so we have to populate the
// refreshState.
refreshState = s.SyncWrapper()
refreshState = states.NewState().SyncWrapper()
case walkPlan:
state = c.state.SyncWrapper()