Skip to content

Commit 03be52e

Browse files
committed
add a comment about using modules from plan instead of apply
1 parent b47a018 commit 03be52e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

provisionerd/runner/runner.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,10 @@ func (r *Runner) runWorkspaceBuild(ctx context.Context) (*proto.CompletedJob, *p
10381038
State: applyComplete.State,
10391039
Resources: applyComplete.Resources,
10401040
Timings: applyComplete.Timings,
1041-
Modules: planComplete.Modules,
1041+
// Modules are created on disk by `terraform init`, and that is only
1042+
// called by `plan`. `apply` does not modify them, so we can use the
1043+
// modules from the plan response.
1044+
Modules: planComplete.Modules,
10421045
},
10431046
},
10441047
}, nil

0 commit comments

Comments
 (0)