Tomas Jelinek has posted comments on this change.

Change subject: core: copy disks from template instead of instance type
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.ovirt.org/#/c/27630/1/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:         Guid templateId = 
getParameters().getVmStaticData().getVmtGuid();
> please use getVmtGuid
Done
Line 812: 
Line 813:         List<VmDevice> disks = 
DbFacade.getInstance().getVmDeviceDao().getVmDeviceByVmIdAndType(templateId, 
VmDeviceGeneralType.DISK);
Line 814:         VmDeviceUtils.copyVmDevices(
Line 815:                 templateId,


-- 
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: 1
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-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to