Update config.go

This commit is contained in:
Adrien Delorme 2020-03-16 12:32:57 +01:00
parent 0cbf80dafe
commit a9ed8eac2a
1 changed files with 3 additions and 0 deletions

View File

@ -267,6 +267,9 @@ func (c *Config) Prepare(raws ...interface{}) ([]string, error) {
// Validation
var errs *packer.MultiError
errs = packer.MultiErrorAppend(errs, c.ImageTag.CopyOn(c.ImageTags)...)
errs = packer.MultiErrorAppend(errs, c.VmTag.CopyOn(c.VmTags)...)
if es := c.Comm.Prepare(&c.ctx); len(es) > 0 {
errs = packer.MultiErrorAppend(errs, es...)
}