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:
parent
773dd56b42
commit
df6f3fa6de
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue