From e357c56186d8da1464b0649ab98690907b80521a Mon Sep 17 00:00:00 2001 From: Taliesin Sisson Date: Tue, 22 Nov 2016 08:10:42 +0000 Subject: [PATCH] Builders don't need to set this up anymore --- builder/hyperv/iso/builder.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/builder/hyperv/iso/builder.go b/builder/hyperv/iso/builder.go index e68c38e2d..b825cb2b7 100644 --- a/builder/hyperv/iso/builder.go +++ b/builder/hyperv/iso/builder.go @@ -169,17 +169,6 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) { log.Println(fmt.Sprintf("Using switch %s", b.config.SwitchName)) log.Println(fmt.Sprintf("%s: %v", "SwitchName", b.config.SwitchName)) - if b.config.Communicator == "" { - b.config.Communicator = "ssh" - } else if b.config.Communicator == "ssh" || b.config.Communicator == "winrm" { - // good - } else { - err = errors.New("communicator must be either ssh or winrm") - errs = packer.MultiErrorAppend(errs, err) - } - - log.Println(fmt.Sprintf("%s: %v", "Communicator", b.config.Communicator)) - // Errors if b.config.GuestAdditionsMode == "" { if b.config.GuestAdditionsPath != "" {