diff --git a/pkg/controller/plan/adapter/ocp/builder.go b/pkg/controller/plan/adapter/ocp/builder.go index 256e16583..74363b6c4 100644 --- a/pkg/controller/plan/adapter/ocp/builder.go +++ b/pkg/controller/plan/adapter/ocp/builder.go @@ -458,8 +458,9 @@ func (r *Builder) mapNetworks(sourceVm *cnv.VirtualMachine, targetVmSpec *cnv.Vi // Map networks to NICs interfacesMap := make(map[string]*cnv.Interface) for _, ifc := range sourceVm.Spec.Template.Spec.Domain.Devices.Interfaces { + currentInterface := ifc networkName := ifc.Name - interfacesMap[networkName] = &ifc + interfacesMap[networkName] = ¤tInterface } var kInterface *cnv.Interface