packer-cn/builder/virtualbox/vm/step_import.go

21 lines
390 B
Go
Raw Normal View History

2019-02-16 08:32:22 -05:00
package vm
import (
"context"
"github.com/hashicorp/packer/helper/multistep"
)
// 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) {
}