Remove stripIdentityInfo() function from snapshot package
@@ -393,20 +393,6 @@ func (t *vmRestoreTarget) Ready() (bool, error) {
return !exists, nil
}
-func stripIdentityInfo(vm *kubevirtv1.VirtualMachine) {
- vmTemplate := vm.Spec.Template
- if vmTemplate == nil {
- return
- }
-
- fw := vmTemplate.Spec.Domain.Firmware
- if fw == nil {
- return
- }
-
- fw.UUID = ""
-}
-
func (t *vmRestoreTarget) Reconcile() (bool, error) {
log.Log.Object(t.vmRestore).V(3).Info("Reconciling VM")
@@ -547,7 +533,6 @@ func (t *vmRestoreTarget) Reconcile() (bool, error) {
Status: kubevirtv1.VirtualMachineStatus{},
}
- stripIdentityInfo(newVM)
} else {
newVM = t.vm.DeepCopy()
newVM.Spec = *snapshotVM.Spec.DeepCopy()
