Commit e21d389f authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer: Fixin bugs in PrefixUi calling the wrong method

parent 3e1b10c0
...@@ -73,13 +73,13 @@ func (c Command) Run(env packer.Environment, args []string) int { ...@@ -73,13 +73,13 @@ func (c Command) Run(env packer.Environment, args []string) int {
ui = &packer.ColoredUi{ ui = &packer.ColoredUi{
colors[i%len(colors)], colors[i%len(colors)],
ui, env.Ui(),
} }
ui = &packer.PrefixedUi{ ui = &packer.PrefixedUi{
fmt.Sprintf("==> %s", b.Name()), fmt.Sprintf("==> %s", b.Name()),
fmt.Sprintf(" %s", b.Name()), fmt.Sprintf(" %s", b.Name()),
env.Ui(), ui,
} }
buildUis[b.Name()] = ui buildUis[b.Name()] = ui
......
...@@ -73,7 +73,7 @@ func (u *PrefixedUi) Say(message string) { ...@@ -73,7 +73,7 @@ func (u *PrefixedUi) Say(message string) {
} }
func (u *PrefixedUi) Message(message string) { func (u *PrefixedUi) Message(message string) {
u.Ui.Say(fmt.Sprintf("%s: %s", u.MessagePrefix, message)) u.Ui.Message(fmt.Sprintf("%s: %s", u.MessagePrefix, message))
} }
func (u *PrefixedUi) Error(message string) { func (u *PrefixedUi) Error(message string) {
......
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