Commit 009b5091 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

command/build: Output nothign if artifact is nil

parent 9bb24e6d
......@@ -183,7 +183,12 @@ func (c Command) Run(env packer.Environment, args []string) int {
env.Ui().Say("\n==> The build completed! The artifacts created were:")
for name, artifact := range artifacts {
env.Ui().Say(fmt.Sprintf("--> %s:", name))
if artifact != nil {
env.Ui().Say(artifact.String())
} else {
env.Ui().Say("<nothing>")
}
}
return 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment