:chore: implemented OSC connection in pre_validate file
This commit is contained in:
parent
22481d1ac2
commit
823b957a1f
|
@ -16,6 +16,7 @@ import (
|
||||||
type StepPreValidate struct {
|
type StepPreValidate struct {
|
||||||
DestOmiName string
|
DestOmiName string
|
||||||
ForceDeregister bool
|
ForceDeregister bool
|
||||||
|
API string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *StepPreValidate) Run(_ context.Context, state multistep.StateBag) multistep.StepAction {
|
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.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) {}
|
func (s *StepPreValidate) Cleanup(multistep.StateBag) {}
|
||||||
|
|
Loading…
Reference in New Issue