Persist all previews, even those immediately before update

This commit is contained in:
Chris Smith 2018-09-21 11:41:31 -07:00
parent 9c042a3a5b
commit 3984cd96d7

View file

@ -98,7 +98,7 @@ func PreviewThenPrompt(ctx context.Context, kind apitype.UpdateKind, stack Stack
// Perform the update operations, passing true for dryRun, so that we get a preview.
changes := engine.ResourceChanges(nil)
if !op.Opts.SkipPreview {
c, err := apply(ctx, kind, stack, op, true /*dryRun*/, false /*persist*/, eventsChannel)
c, err := apply(ctx, kind, stack, op, true /*dryRun*/, true /*persist*/, eventsChannel)
if err != nil {
close(eventsChannel)
return c, err