21 lines
446 B
Go
21 lines
446 B
Go
package common
|
|
|
|
import (
|
|
"github.com/mitchellh/packer/template/interpolate"
|
|
)
|
|
|
|
// PrlctlConfig contains the configuration for running "prlctl" commands
|
|
// before the VM start.
|
|
type PrlctlConfig struct {
|
|
Prlctl [][]string `mapstructure:"prlctl"`
|
|
}
|
|
|
|
// Prepare sets the default value of "Prlctl" property.
|
|
func (c *PrlctlConfig) Prepare(ctx *interpolate.Context) []error {
|
|
if c.Prlctl == nil {
|
|
c.Prlctl = make([][]string, 0)
|
|
}
|
|
|
|
return nil
|
|
}
|