Skip to content

Commit cbc8035

Browse files
committed
warn rather than fail if module archival results in an error
1 parent 51cebae commit cbc8035

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

provisioner/terraform/executor.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,8 @@ func (e *executor) plan(ctx, killCtx context.Context, env, vars []string, logr l
309309

310310
moduleFiles, err := getModulesArchive(e.workdir)
311311
if err != nil {
312-
return nil, err
312+
// TODO: we probably want to persist this error or make it louder eventually
313+
e.logger.Warn(ctx, "failed to archive terraform modules", slog.Error(err))
313314
}
314315

315316
return &proto.PlanComplete{

0 commit comments

Comments
 (0)