packer: Fixin bugs in PrefixUi calling the wrong method

This commit is contained in:
Mitchell Hashimoto 2013-06-03 13:54:28 -07:00
parent 3e1b10c09e
commit e21d389fd2
2 changed files with 3 additions and 3 deletions

View File

@ -73,13 +73,13 @@ func (c Command) Run(env packer.Environment, args []string) int {
ui = &packer.ColoredUi{
colors[i%len(colors)],
ui,
env.Ui(),
}
ui = &packer.PrefixedUi{
fmt.Sprintf("==> %s", b.Name()),
fmt.Sprintf(" %s", b.Name()),
env.Ui(),
ui,
}
buildUis[b.Name()] = ui

View File

@ -73,7 +73,7 @@ func (u *PrefixedUi) Say(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) {