packer-cn/builder/virtualbox/common/vboxmanage_post_config.go
2019-06-06 16:29:25 +02:00

23 lines
532 B
Go

//go:generate struct-markdown
package common
import (
"github.com/hashicorp/packer/template/interpolate"
)
type VBoxManagePostConfig struct {
// Identical to vboxmanage,
// except that it is run after the virtual machine is shutdown, and before the
// virtual machine is exported.
VBoxManagePost [][]string `mapstructure:"vboxmanage_post" required:"false"`
}
func (c *VBoxManagePostConfig) Prepare(ctx *interpolate.Context) []error {
if c.VBoxManagePost == nil {
c.VBoxManagePost = make([][]string, 0)
}
return nil
}