From 185f3d9d48678b91dba8772e9348f7660539b1bf Mon Sep 17 00:00:00 2001 From: James Griffith Date: Tue, 13 Oct 2020 16:47:00 -0400 Subject: [PATCH] vsphere clone config not yet using warnings, leaving code commented out --- builder/vsphere/clone/config.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/builder/vsphere/clone/config.go b/builder/vsphere/clone/config.go index 3cfd16339..f7b2fd588 100644 --- a/builder/vsphere/clone/config.go +++ b/builder/vsphere/clone/config.go @@ -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 {