Skip to content

Commit

Permalink
openstack: do not set empty features
Browse files Browse the repository at this point in the history
The features are taken from the corresponding template in kubevirt, if
exists, we do not want to override them with empty settings.

Signed-off-by: Arik Hadas <[email protected]>
  • Loading branch information
ahadas committed Nov 7, 2023
1 parent 2803779 commit 0849112
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/controller/plan/adapter/openstack/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,8 @@ func (r *Builder) mapFirmware(vm *model.Workload, object *cnv.VirtualMachineSpec
default:
bootloader = &cnv.Bootloader{BIOS: &cnv.BIOS{}}
}
features := &cnv.Features{}
firmware := &cnv.Firmware{}
firmware.Bootloader = bootloader
object.Template.Spec.Domain.Features = features
object.Template.Spec.Domain.Firmware = firmware
}

Expand Down

0 comments on commit 0849112

Please sign in to comment.