use no ops for ansible ui & MachineReadableUi

This commit is contained in:
Adrien Delorme 2018-09-05 14:02:09 +02:00
parent fd7cb47adc
commit 9b07d7670e
2 changed files with 2 additions and 4 deletions

View File

@ -331,6 +331,5 @@ func (u *MachineReadableUi) Machine(category string, args ...string) {
}
func (u *MachineReadableUi) ProgressBar() ProgressBar {
panic("MachineReadableUi")
return nil // no-op
return new(NoopProgressBar)
}

View File

@ -614,6 +614,5 @@ func (ui *Ui) Machine(t string, args ...string) {
}
func (ui *Ui) ProgressBar() packer.ProgressBar {
panic("to implement")
return nil // TODO
return new(packer.NoopProgressBar)
}