From 620a864c49b5a669b2c733069d3946ddd89c96a5 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 28 Jun 2013 09:45:30 -0400 Subject: [PATCH] builder/virtualbox: check the proper file path --- builder/virtualbox/builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/virtualbox/builder.go b/builder/virtualbox/builder.go index ea2e7de68..1cdc13b0d 100644 --- a/builder/virtualbox/builder.go +++ b/builder/virtualbox/builder.go @@ -137,7 +137,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 {