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 { switch operation {
case walkValidate: case walkValidate:
// validate should not use any state // validate should not use any state
s := states.NewState() state = states.NewState().SyncWrapper()
state = s.SyncWrapper()
// validate currently uses the plan graph, so we have to populate the // validate currently uses the plan graph, so we have to populate the
// refreshState. // refreshState.
refreshState = s.SyncWrapper() refreshState = states.NewState().SyncWrapper()
case walkPlan: case walkPlan:
state = c.state.SyncWrapper() state = c.state.SyncWrapper()