unset HardwareConfig.Firmware since CreateConfig.Firmware configures the firmware in StepCreateVM

This commit is contained in:
Joshua Foster 2020-07-09 10:34:48 -04:00
parent d5c40fb0a2
commit 765d96e8eb
1 changed files with 5 additions and 0 deletions

View File

@ -60,6 +60,11 @@ func (b *Builder) Run(ctx context.Context, ui packer.Ui, hook packer.Hook) (pack
)
}
// default Firmware to "" since it is already configured by the CreateConfig.Firmware
if b.config.CreateConfig.Firmware != "" {
b.config.HardwareConfig.Firmware = ""
}
steps = append(steps,
&StepCreateVM{
Config: &b.config.CreateConfig,