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

18 lines
317 B
Go
Raw Normal View History

2013-12-22 12:24:29 -05:00
package common
import (
"github.com/mitchellh/packer/template/interpolate"
2013-12-22 12:24:29 -05:00
)
type VBoxManageConfig struct {
VBoxManage [][]string `mapstructure:"vboxmanage"`
}
func (c *VBoxManageConfig) Prepare(ctx *interpolate.Context) []error {
2013-12-22 12:24:29 -05:00
if c.VBoxManage == nil {
c.VBoxManage = make([][]string, 0)
}
return nil
2013-12-22 12:24:29 -05:00
}