Skip to content

Commit

Permalink
MTV-1613 | Remove vm preference
Browse files Browse the repository at this point in the history
  • Loading branch information
mnecas committed Jan 14, 2025
1 parent 3113e86 commit 62c5376
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions pkg/controller/plan/kubevirt.go
Original file line number Diff line number Diff line change
Expand Up @@ -1311,20 +1311,17 @@ func (r *KubeVirt) virtualMachine(vm *plan.VMStatus) (object *cnv.VirtualMachine
}

var ok bool
object, err = r.vmPreference(vm)
if err != nil {
r.Log.Info("Building VirtualMachine without a VirtualMachinePreference.",
r.Log.Info("Building VirtualMachine without a VirtualMachinePreference.",
"vm",
vm.String(),
"err",
err)
object, ok = r.vmTemplate(vm)
if !ok {
r.Log.Info("Building VirtualMachine without template.",
"vm",
vm.String(),
"err",
err)
object, ok = r.vmTemplate(vm)
if !ok {
r.Log.Info("Building VirtualMachine without template.",
"vm",
vm.String())
object = r.emptyVm(vm)
}
vm.String())
object = r.emptyVm(vm)
}

err = r.setInstanceType(vm, object)
Expand Down

0 comments on commit 62c5376

Please sign in to comment.