packer: Fixin bugs in PrefixUi calling the wrong method
This commit is contained in:
parent
3e1b10c09e
commit
e21d389fd2
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue