2019-02-16 08:32:22 -05:00
|
|
|
package vm
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2020-11-17 19:31:03 -05:00
|
|
|
"github.com/hashicorp/packer/packer-plugin-sdk/multistep"
|
2019-02-16 08:32:22 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
// This step imports an OVF VM into VirtualBox.
|
|
|
|
type StepImport struct {
|
|
|
|
Name string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StepImport) Run(_ context.Context, state multistep.StateBag) multistep.StepAction {
|
|
|
|
state.Put("vmName", s.Name)
|
|
|
|
return multistep.ActionContinue
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StepImport) Cleanup(state multistep.StateBag) {
|
|
|
|
}
|