Skip the uploading ISO step for the moment until it is fully implemented.

Signed-off-by: Rob Dobson <rob.dobson@citrix.com>
This commit is contained in:
Rob Dobson 2014-11-20 18:53:05 +00:00
parent d0dd202829
commit d64357bc71

View File

@ -8,7 +8,6 @@ import (
"log" "log"
"errors" "errors"
"time" "time"
"strings"
"os" "os"
commonssh "github.com/mitchellh/packer/common/ssh" commonssh "github.com/mitchellh/packer/common/ssh"
) )
@ -263,7 +262,7 @@ func (self *Builder) Prepare (raws ...interface{}) (params []string, retErr erro
errs = packer.MultiErrorAppend( errs = packer.MultiErrorAppend(
errs, errors.New("the host min port must be less than the max")) errs, errors.New("the host min port must be less than the max"))
} }
/*
if self.config.ISOChecksumType == "" { if self.config.ISOChecksumType == "" {
errs = packer.MultiErrorAppend( errs = packer.MultiErrorAppend(
errs, errors.New("The iso_checksum_type must be specified.")) errs, errors.New("The iso_checksum_type must be specified."))
@ -299,7 +298,7 @@ func (self *Builder) Prepare (raws ...interface{}) (params []string, retErr erro
errs, fmt.Errorf("Failed to parse the iso_url (%d): %s", i, err)) errs, fmt.Errorf("Failed to parse the iso_url (%d): %s", i, err))
} }
} }
*/
if len(errs.Errors) > 0 { if len(errs.Errors) > 0 {
retErr = errors.New(errs.Error()) retErr = errors.New(errs.Error())
} }
@ -331,6 +330,7 @@ func (self *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (pa
//Build the steps //Build the steps
steps := []multistep.Step{ steps := []multistep.Step{
/*
&common.StepDownload{ &common.StepDownload{
Checksum: self.config.ISOChecksum, Checksum: self.config.ISOChecksum,
ChecksumType: self.config.ISOChecksumType, ChecksumType: self.config.ISOChecksumType,
@ -338,6 +338,7 @@ func (self *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (pa
ResultKey: "iso_path", ResultKey: "iso_path",
Url: self.config.ISOUrls, Url: self.config.ISOUrls,
}, },
*/
new(stepPrepareOutputDir), new(stepPrepareOutputDir),
new(stepHTTPServer), new(stepHTTPServer),
//new(stepUploadIso), //new(stepUploadIso),