packer-cn/builder/virtualbox/common/vboxmanage_post_config.go

18 lines
342 B
Go

package common
import (
"github.com/hashicorp/packer/template/interpolate"
)
type VBoxManagePostConfig struct {
VBoxManagePost [][]string `mapstructure:"vboxmanage_post"`
}
func (c *VBoxManagePostConfig) Prepare(ctx *interpolate.Context) []error {
if c.VBoxManagePost == nil {
c.VBoxManagePost = make([][]string, 0)
}
return nil
}