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