From 45058847c0bad9f8de3519e3f9ef9671e2402b76 Mon Sep 17 00:00:00 2001 From: Moss Date: Fri, 12 Jun 2020 14:22:00 +0200 Subject: [PATCH] return BootConfig prepare err --- builder/vsphere/iso/step_boot_command.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/builder/vsphere/iso/step_boot_command.go b/builder/vsphere/iso/step_boot_command.go index dc3b89786..876b49505 100644 --- a/builder/vsphere/iso/step_boot_command.go +++ b/builder/vsphere/iso/step_boot_command.go @@ -25,15 +25,10 @@ type bootCommandTemplateData struct { } func (c *BootConfig) Prepare(ctx *interpolate.Context) []error { - var errs []error - if c.BootWait == 0 { c.BootWait = 10 * time.Second } - - c.BootConfig.Prepare(ctx) - - return errs + return c.BootConfig.Prepare(ctx) } type StepBootCommand struct {