Check the floppy files and not the dvd files attached
This commit is contained in:
parent
4e8074d7e5
commit
837f9addd0
|
@ -172,7 +172,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if b.config.Generation == 2 {
|
if b.config.Generation == 2 {
|
||||||
if len(b.config.SecondaryDvdImages) > 0 {
|
if len(b.config.FloppyFiles) > 0 {
|
||||||
err = errors.New("Generation 2 vms don't support floppy drives. Use ISO image instead.")
|
err = errors.New("Generation 2 vms don't support floppy drives. Use ISO image instead.")
|
||||||
errs = packer.MultiErrorAppend(errs, err)
|
errs = packer.MultiErrorAppend(errs, err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue