From a6830f8348ef1ab4781cd8af9d837aad30f08b92 Mon Sep 17 00:00:00 2001 From: Stephen Fox Date: Wed, 31 Jul 2019 14:08:40 -0400 Subject: [PATCH] Move 'ui' variable closer to invocation. --- common/step_download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/step_download.go b/common/step_download.go index e8757c1df..fb84ceb10 100644 --- a/common/step_download.go +++ b/common/step_download.go @@ -53,9 +53,9 @@ type StepDownload struct { } func (s *StepDownload) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction { - ui := state.Get("ui").(packer.Ui) defer log.Printf("Leaving retrieve loop for %s", s.Description) + ui := state.Get("ui").(packer.Ui) ui.Say(fmt.Sprintf("Retrieving %s", s.Description)) var errs []error