mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
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
|
// the process of being removed. A given graph node should _not_ implement both
|
||||||
// GraphNodeExecutable and GraphNodeEvalable.
|
// GraphNodeExecutable and GraphNodeEvalable.
|
||||||
type GraphNodeExecutable interface {
|
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
|
// Acquire a lock on the semaphore
|
||||||
w.Context.parallelSem.Acquire()
|
w.Context.parallelSem.Acquire()
|
||||||
|
|
||||||
err := n.Execute(ctx, w.Operation)
|
err := n.Execute(ctx, &w.Operation)
|
||||||
|
|
||||||
// Release the semaphore
|
// Release the semaphore
|
||||||
w.Context.parallelSem.Release()
|
w.Context.parallelSem.Release()
|
||||||
|
Loading…
Reference in New Issue
Block a user