vsphere clone config not yet using warnings, leaving code commented out

This commit is contained in:
James Griffith 2020-10-13 16:47:00 -04:00 committed by Megan Marsh
parent c8ad66f419
commit 185f3d9d48
1 changed files with 4 additions and 3 deletions

View File

@ -65,7 +65,7 @@ func (c *Config) Prepare(raws ...interface{}) ([]string, error) {
return nil, err
}
warnings := make([]string, 0)
// warnings := make([]string, 0)
errs := new(packer.MultiError)
errs = packer.MultiErrorAppend(errs, c.ConnectConfig.Prepare()...)
@ -80,8 +80,9 @@ func (c *Config) Prepare(raws ...interface{}) ([]string, error) {
errs = packer.MultiErrorAppend(errs, c.WaitIpConfig.Prepare()...)
errs = packer.MultiErrorAppend(errs, c.Comm.Prepare(&c.ctx)...)
shutdownWarnings, shutdownErrs := c.ShutdownConfig.Prepare(c.Comm)
warnings = append(warnings, shutdownWarnings...)
_, shutdownErrs := c.ShutdownConfig.Prepare(c.Comm)
// shutdownWarnings, shutdownErrs := c.ShutdownConfig.Prepare(c.Comm)
// warnings = append(warnings, shutdownWarnings...)
errs = packer.MultiErrorAppend(errs, shutdownErrs...)
if c.Export != nil {