From 036c9ddf7c88e9b7acc9daf6e39109483d83ec85 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 23 Jun 2015 12:27:27 +0300 Subject: [PATCH] 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 --- provisioner/file/provisioner.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/provisioner/file/provisioner.go b/provisioner/file/provisioner.go index f88641095..19cebe263 100644 --- a/provisioner/file/provisioner.go +++ b/provisioner/file/provisioner.go @@ -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,