fix file download provisioner

when file used with download direction we don't need
to check source on builder because it on machine.

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
This commit is contained in:
Vasiliy Tolstov 2015-06-23 12:27:27 +03:00
parent b77042dc85
commit 036c9ddf7c
1 changed files with 0 additions and 4 deletions

View File

@ -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,