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