From 3a61196f15f03d8d5c9061193c20dec3f7e75afd Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 3 Jun 2013 13:47:49 -0700 Subject: [PATCH] command/build: Wrap the onion the right way --- command/build/command.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/command/build/command.go b/command/build/command.go index 756a98668..1ea688623 100644 --- a/command/build/command.go +++ b/command/build/command.go @@ -71,17 +71,17 @@ func (c Command) Run(env packer.Environment, args []string) int { for i, b := range builds { var ui packer.Ui + ui = &packer.ColoredUi{ + colors[i%len(colors)], + ui, + } + ui = &packer.PrefixedUi{ fmt.Sprintf("==> %s", b.Name()), fmt.Sprintf(" %s", b.Name()), env.Ui(), } - ui = &packer.ColoredUi{ - colors[i % len(colors)], - ui, - } - buildUis[b.Name()] = ui ui.Say(fmt.Sprintf("%s output will be in this color.", b.Name())) }