Commit a8166d47 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

Merge pull request #2292 from vtolstov/file

fix file download provisioner
parents d429b75f 036c9ddf
...@@ -47,10 +47,6 @@ func (p *Provisioner) Prepare(raws ...interface{}) error { ...@@ -47,10 +47,6 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
} }
var errs *packer.MultiError 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" { if p.config.Direction != "download" && p.config.Direction != "upload" {
errs = packer.MultiErrorAppend(errs, errs = packer.MultiErrorAppend(errs,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment