diff --git a/command/build.go b/command/build.go index 65d19bd23..9de68e83d 100644 --- a/command/build.go +++ b/command/build.go @@ -156,12 +156,12 @@ func (c *BuildCommand) RunContext(buildCtx context.Context, args []string) int { // Add a newline between the color output and the actual output c.Ui.Say("") } - // Now add timestamps if requested - if cfg.Timestamp { - ui = &packer.TimestampedUi{ - Ui: ui, - } - } + } + } + // Now add timestamps if requested + if cfg.Timestamp { + ui = &packer.TimestampedUi{ + Ui: ui, } }