Commit fb4b940c authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/vmware: properly test file URLs

parent fc2c12ef
...@@ -128,7 +128,7 @@ func (b *Builder) Prepare(raws ...interface{}) error { ...@@ -128,7 +128,7 @@ func (b *Builder) Prepare(raws ...interface{}) error {
} }
if url.Scheme == "file" { 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)) errs = append(errs, fmt.Errorf("iso_url points to bad file: %s", err))
} }
} else { } else {
......
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