Merge pull request #8110 from alrs/fix-builder-openstack-dropped-error

builder/openstack: Fix dropped error
This commit is contained in:
Megan Marsh 2019-09-16 09:33:13 -07:00 committed by GitHub
commit 8292c7f48f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

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