github.com/mitchellh/packer@v1.3.2/builder/virtualbox/common/export_opts.go (about)

     1  package common
     2  
     3  import (
     4  	"github.com/hashicorp/packer/template/interpolate"
     5  )
     6  
     7  type ExportOpts struct {
     8  	ExportOpts []string `mapstructure:"export_opts"`
     9  }
    10  
    11  func (c *ExportOpts) Prepare(ctx *interpolate.Context) []error {
    12  	if c.ExportOpts == nil {
    13  		c.ExportOpts = make([]string, 0)
    14  	}
    15  
    16  	return nil
    17  }