builder/vmware: properly test file URLs
This commit is contained in:
parent
29af228a96
commit
358e71d98e
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user