diff --git a/builder/vsphere/clone/step_customize.go b/builder/vsphere/clone/step_customize.go index 8fa50eef..4d64d369 100644 --- a/builder/vsphere/clone/step_customize.go +++ b/builder/vsphere/clone/step_customize.go @@ -440,7 +440,7 @@ func (w *WindowsOptions) sysprep() *types.CustomizationSysprep { } func (w *WindowsOptions) guiRunOnce() *types.CustomizationGuiRunOnce { - if w.RunOnceCommandList == nil || len(w.RunOnceCommandList) == 0 { + if len(w.RunOnceCommandList) == 0 { return &types.CustomizationGuiRunOnce{ CommandList: []string{""}, }