mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-26 09:44:01 -04:00
builder/vmware: properly test file URLs
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user