2014-03-12 10:12:20 -03:00
|
|
|
package common
|
|
|
|
|
|
|
|
import (
|
2017-04-04 13:39:01 -07:00
|
|
|
"github.com/hashicorp/packer/template/interpolate"
|
2014-03-12 10:12:20 -03:00
|
|
|
)
|
|
|
|
|
|
|
|
type ExportOpts struct {
|
2014-03-14 00:12:50 -03:00
|
|
|
ExportOpts []string `mapstructure:"export_opts"`
|
2014-03-12 10:12:20 -03:00
|
|
|
}
|
|
|
|
|
2015-05-27 14:01:08 -07:00
|
|
|
func (c *ExportOpts) Prepare(ctx *interpolate.Context) []error {
|
2014-03-14 00:12:50 -03:00
|
|
|
if c.ExportOpts == nil {
|
|
|
|
c.ExportOpts = make([]string, 0)
|
2014-03-12 10:12:20 -03:00
|
|
|
}
|
|
|
|
|
2015-05-27 14:01:08 -07:00
|
|
|
return nil
|
2014-03-12 10:12:20 -03:00
|
|
|
}
|