From bb5b12d77e0038f854aece90d24a7016e39d78f1 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 19 Jun 2013 13:07:52 -0700 Subject: [PATCH] command/build: output properly if no artifact --- command/build/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/build/command.go b/command/build/command.go index 2dfa4906f..e90ced1d9 100644 --- a/command/build/command.go +++ b/command/build/command.go @@ -244,7 +244,7 @@ func (c Command) Run(env packer.Environment, args []string) int { if artifact != nil { fmt.Fprintf(&message, artifact.String()) } else { - fmt.Print("") + fmt.Fprint(&message, "") } env.Ui().Say(message.String())