2013-12-22 10:58:07 -05:00
|
|
|
package common
|
|
|
|
|
|
|
|
import (
|
2015-05-27 17:01:08 -04:00
|
|
|
"github.com/mitchellh/packer/template/interpolate"
|
2013-12-22 10:58:07 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
// FloppyConfig is configuration related to created floppy disks and attaching
|
|
|
|
// them to a VirtualBox machine.
|
|
|
|
type FloppyConfig struct {
|
|
|
|
FloppyFiles []string `mapstructure:"floppy_files"`
|
|
|
|
}
|
|
|
|
|
2015-05-27 17:01:08 -04:00
|
|
|
func (c *FloppyConfig) Prepare(ctx *interpolate.Context) []error {
|
2013-12-22 10:58:07 -05:00
|
|
|
if c.FloppyFiles == nil {
|
|
|
|
c.FloppyFiles = make([]string, 0)
|
|
|
|
}
|
|
|
|
|
2015-05-27 17:01:08 -04:00
|
|
|
return nil
|
2013-12-22 10:58:07 -05:00
|
|
|
}
|