From 9b07d7670ed5dff98365df03330410700cdcbe1a Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Wed, 5 Sep 2018 14:02:09 +0200 Subject: [PATCH] use no ops for ansible ui & MachineReadableUi --- packer/ui.go | 3 +-- provisioner/ansible/provisioner.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packer/ui.go b/packer/ui.go index e6ceba0e3..e9a98b24c 100644 --- a/packer/ui.go +++ b/packer/ui.go @@ -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) } diff --git a/provisioner/ansible/provisioner.go b/provisioner/ansible/provisioner.go index d8d82289f..d2528218d 100644 --- a/provisioner/ansible/provisioner.go +++ b/provisioner/ansible/provisioner.go @@ -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) }