:chore: implemented OSC connection in pre_validate file

This commit is contained in:
PacoDw 2020-08-17 10:06:27 -05:00 committed by Marin Salinas
parent 22481d1ac2
commit 823b957a1f
1 changed files with 8 additions and 1 deletions

View File

@ -16,6 +16,7 @@ import (
type StepPreValidate struct {
DestOmiName string
ForceDeregister bool
API string
}
func (s *StepPreValidate) Run(_ context.Context, state multistep.StateBag) multistep.StepAction {
@ -60,7 +61,13 @@ func (s *StepPreValidate) Run(_ context.Context, state multistep.StateBag) multi
return multistep.ActionHalt
}
return multistep.ActionContinue
for _, omi := range resp.Images {
if omi.ImageName == imageName {
images = append(images, omi)
}
}
return images, nil
}
func (s *StepPreValidate) Cleanup(multistep.StateBag) {}