allow to have timestamped colorless ui messages

This commit is contained in:
Adrien Delorme 2019-06-19 15:04:13 +02:00
parent 022b559c2f
commit 5efab58ed8
1 changed files with 6 additions and 6 deletions

View File

@ -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 // Add a newline between the color output and the actual output
c.Ui.Say("") c.Ui.Say("")
} }
// Now add timestamps if requested }
if cfg.Timestamp { }
ui = &packer.TimestampedUi{ // Now add timestamps if requested
Ui: ui, if cfg.Timestamp {
} ui = &packer.TimestampedUi{
} Ui: ui,
} }
} }