From 6c1ce2bd9ace1b9758b5cf06ea3b93059b06645b Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Mon, 16 Sep 2019 06:26:56 -0700 Subject: [PATCH] builder/openstack: Fix dropped error --- builder/openstack/step_source_image_info.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/builder/openstack/step_source_image_info.go b/builder/openstack/step_source_image_info.go index 3c66bdc40..4b40ea111 100644 --- a/builder/openstack/step_source_image_info.go +++ b/builder/openstack/step_source_image_info.go @@ -40,6 +40,12 @@ func (s *StepSourceImageInfo) Run(ctx context.Context, state multistep.StateBag) } client, err := config.imageV2Client() + if err != nil { + err := fmt.Errorf("error creating image client: %s", err) + state.Put("error", err) + ui.Error(err.Error()) + return multistep.ActionHalt + } if s.SourceImageName != "" { s.SourceImageOpts = images.ListOpts{