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
|
|
|
)
|
|
|
|
|
2016-12-16 14:51:55 -05:00
|
|
|
// PrlctlConfig contains the configuration for running "prlctl" commands
|
|
|
|
// before the VM start.
|
2014-04-06 13:21:22 -04:00
|
|
|
type PrlctlConfig struct {
|
|
|
|
Prlctl [][]string `mapstructure:"prlctl"`
|
|
|
|
}
|
|
|
|
|
2016-12-16 14:51:55 -05:00
|
|
|
// Prepare sets the default value of "Prlctl" property.
|
2015-05-27 16:49:31 -04:00
|
|
|
func (c *PrlctlConfig) Prepare(ctx *interpolate.Context) []error {
|
2014-04-06 13:21:22 -04:00
|
|
|
if c.Prlctl == nil {
|
|
|
|
c.Prlctl = make([][]string, 0)
|
|
|
|
}
|
|
|
|
|
2015-05-27 16:49:31 -04:00
|
|
|
return nil
|
2014-04-06 13:21:22 -04:00
|
|
|
}
|