Skip to content

Commit

Permalink
Fix input device
Browse files Browse the repository at this point in the history
Signed-off-by: futuretea <[email protected]>
  • Loading branch information
futuretea committed Mar 1, 2023
1 parent 617a7d4 commit 865d8ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ func (c *Constructor) Setup() util.Processors {
vmBuilder.Input(inputName, inputType, inputBus)
return nil
},
Required: true,
},
}
return append(processors, customProcessors...)
Expand Down Expand Up @@ -336,6 +335,7 @@ func Updater(c *client.Client, ctx context.Context, vm *kubevirtv1.VirtualMachin
vm.Spec.Template.Spec.Networks = []kubevirtv1.Network{}
vm.Spec.Template.Spec.Domain.Devices.Interfaces = []kubevirtv1.Interface{}
vm.Spec.Template.Spec.Domain.Devices.Disks = []kubevirtv1.Disk{}
vm.Spec.Template.Spec.Domain.Devices.Inputs = []kubevirtv1.Input{}
vm.Spec.Template.Spec.Volumes = []kubevirtv1.Volume{}
vm.Annotations[harvesterutil.AnnotationVolumeClaimTemplates] = "[]"
return newVMConstructor(c, ctx, &builder.VMBuilder{
Expand Down

0 comments on commit 865d8ab

Please sign in to comment.