Tomas Jelinek has posted comments on this change. Change subject: core: copy disks from template instead of instance type ......................................................................
Patch Set 3: (1 comment) http://gerrit.ovirt.org/#/c/27630/3/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmCommand.java File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmCommand.java: Line 807: * If both the instance type and the template is set, than all the devices has to be copied from instance type except the Line 808: * disk devices which has to be copied from the template (since the instance type has no disks but the template does have). Line 809: */ Line 810: private void copyDiskDevicesFromTemplate() { Line 811: List<VmDevice> disks = DbFacade.getInstance().getVmDeviceDao().getVmDeviceByVmIdAndType(getVmTemplateId(), VmDeviceGeneralType.DISK); > please use vmDisksSource here as well Done Line 812: VmDeviceUtils.copyVmDevices( Line 813: vmDisksSource.getId(), Line 814: getVmId(), Line 815: getVm(), -- To view, visit http://gerrit.ovirt.org/27630 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Iaddc4d3da99c0a459c7339639cca15cbb597df18 Gerrit-PatchSet: 3 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Tomas Jelinek <[email protected]> Gerrit-Reviewer: Omer Frenkel <[email protected]> Gerrit-Reviewer: Shahar Havivi <[email protected]> Gerrit-Reviewer: Tomas Jelinek <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
