github.com/rothwerx/packer@v0.9.0/builder/virtualbox/common/floppy_config.go (about)

     1  package common
     2  
     3  import (
     4  	"github.com/mitchellh/packer/template/interpolate"
     5  )
     6  
     7  // FloppyConfig is configuration related to created floppy disks and attaching
     8  // them to a VirtualBox machine.
     9  type FloppyConfig struct {
    10  	FloppyFiles []string `mapstructure:"floppy_files"`
    11  }
    12  
    13  func (c *FloppyConfig) Prepare(ctx *interpolate.Context) []error {
    14  	if c.FloppyFiles == nil {
    15  		c.FloppyFiles = make([]string, 0)
    16  	}
    17  
    18  	return nil
    19  }