builder/openstack: Fix dropped error

pull/8110/head
Lars Lehtonen 7 years ago
parent 4d4bd38afa
commit 6c1ce2bd9a

@ -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{

Loading…
Cancel
Save