From 5efab58ed80e30954be1e8d07597622cf79cb709 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Wed, 19 Jun 2019 15:04:13 +0200 Subject: [PATCH] allow to have timestamped colorless ui messages --- command/build.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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, } }