diff --git a/builder/hyperv/iso/builder.go b/builder/hyperv/iso/builder.go index e44182fd9..edf39385c 100644 --- a/builder/hyperv/iso/builder.go +++ b/builder/hyperv/iso/builder.go @@ -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) }