builder/vmware: properly test file URLs

This commit is contained in:
Mitchell Hashimoto 2013-06-28 09:43:49 -04:00
parent fc2c12ef43
commit fb4b940c53
1 changed files with 1 additions and 1 deletions

View File

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