From fb4b940c53aa98abd476a16b0791f598fdda4d0d Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 28 Jun 2013 09:43:49 -0400 Subject: [PATCH] builder/vmware: properly test file URLs --- builder/vmware/builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/vmware/builder.go b/builder/vmware/builder.go index b2d58a0ea..c3dc50e9b 100644 --- a/builder/vmware/builder.go +++ b/builder/vmware/builder.go @@ -128,7 +128,7 @@ func (b *Builder) Prepare(raws ...interface{}) error { } if url.Scheme == "file" { - if _, err := os.Stat(b.config.ISOUrl); err != nil { + if _, err := os.Stat(url.Path); err != nil { errs = append(errs, fmt.Errorf("iso_url points to bad file: %s", err)) } } else {