Check the floppy files and not the dvd files attached

This commit is contained in:
Taliesin Sisson 2015-07-12 19:27:16 +01:00
parent 4e8074d7e5
commit 837f9addd0
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
}
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.")
errs = packer.MultiErrorAppend(errs, err)
}