builder/openstack: Fix dropped error
This commit is contained in:
parent
4d4bd38afa
commit
6c1ce2bd9a
|
@ -40,6 +40,12 @@ func (s *StepSourceImageInfo) Run(ctx context.Context, state multistep.StateBag)
|
||||||
}
|
}
|
||||||
|
|
||||||
client, err := config.imageV2Client()
|
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 != "" {
|
if s.SourceImageName != "" {
|
||||||
s.SourceImageOpts = images.ListOpts{
|
s.SourceImageOpts = images.ListOpts{
|
||||||
|
|
Loading…
Reference in New Issue