Merge pull request #2292 from vtolstov/file
fix file download provisioner
This commit is contained in:
commit
a8166d4765
|
@ -47,10 +47,6 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
|
|||
}
|
||||
|
||||
var errs *packer.MultiError
|
||||
if _, err := os.Stat(p.config.Source); err != nil {
|
||||
errs = packer.MultiErrorAppend(errs,
|
||||
fmt.Errorf("Bad source '%s': %s", p.config.Source, err))
|
||||
}
|
||||
|
||||
if p.config.Direction != "download" && p.config.Direction != "upload" {
|
||||
errs = packer.MultiErrorAppend(errs,
|
||||
|
|
Loading…
Reference in New Issue