diff --git a/command/build.go b/command/build.go index 3d9a29ded..5aafa8620 100644 --- a/command/build.go +++ b/command/build.go @@ -92,10 +92,12 @@ func (c BuildCommand) Run(args []string) int { Color: colors[i%len(colors)], Ui: ui, } + if _, ok := c.Ui.(*packer.MachineReadableUi); !ok { + ui.Say(fmt.Sprintf("%s output will be in this color.", b)) + } } buildUis[b] = ui - ui.Say(fmt.Sprintf("%s output will be in this color.", b)) } // Add a newline between the color output and the actual output