Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Pam Selle committed Aug 1, 2019
1 parent 5cb80c4 commit 2015dd2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions terraform/eval_apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,9 @@ func (n *EvalApplyProvisioners) apply(ctx EvalContext, provs []*configs.Provisio
provisioner := ctx.Provisioner(prov.Type)
schema := ctx.ProvisionerSchema(prov.Type)

// TODO the for_each val is not added here, which might causes issues with provisioners
keyData := EvalDataForInstanceKey(instanceAddr.Key, nil)
forEach, forEachDiags := evaluateResourceForEachExpression(n.ResourceConfig.ForEach, ctx)
diags = diags.Append(forEachDiags)
keyData := EvalDataForInstanceKey(instanceAddr.Key, forEach)

// Evaluate the main provisioner configuration.
config, _, configDiags := ctx.EvaluateBlock(prov.Config, schema, instanceAddr, keyData)
Expand Down

0 comments on commit 2015dd2

Please sign in to comment.