github.phpd.cn/hashicorp/packer@v1.3.2/builder/virtualbox/common/vboxmanage_config.go (about) 1 package common 2 3 import ( 4 "github.com/hashicorp/packer/template/interpolate" 5 ) 6 7 type VBoxManageConfig struct { 8 VBoxManage [][]string `mapstructure:"vboxmanage"` 9 } 10 11 func (c *VBoxManageConfig) Prepare(ctx *interpolate.Context) []error { 12 if c.VBoxManage == nil { 13 c.VBoxManage = make([][]string, 0) 14 } 15 16 return nil 17 }