command/build: output <nothing> properly if no artifact
This commit is contained in:
parent
c6c04ef911
commit
bb5b12d77e
|
@ -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("<nothing>")
|
||||
fmt.Fprint(&message, "<nothing>")
|
||||
}
|
||||
|
||||
env.Ui().Say(message.String())
|
||||
|
|
Loading…
Reference in New Issue