terraform: modify Execute() signature

walkOperation should be a pointer to simplify test writers' lives - it
is not needed in most cases.
This commit is contained in:
Kristin Laemmert 2020-09-08 10:57:23 -04:00
parent 773dd56b42
commit df6f3fa6de
2 changed files with 2 additions and 2 deletions

View File

@ -5,5 +5,5 @@ package terraform
// the process of being removed. A given graph node should _not_ implement both
// GraphNodeExecutable and GraphNodeEvalable.
type GraphNodeExecutable interface {
Execute(EvalContext, walkOperation) error
Execute(EvalContext, *walkOperation) error
}

View File

@ -167,7 +167,7 @@ func (w *ContextGraphWalker) Execute(ctx EvalContext, n GraphNodeExecutable) tfd
// Acquire a lock on the semaphore
w.Context.parallelSem.Acquire()
err := n.Execute(ctx, w.Operation)
err := n.Execute(ctx, &w.Operation)
// Release the semaphore
w.Context.parallelSem.Release()