Liron Aravot has posted comments on this change.

Change subject: core: Add Video managed device for VM's/Template's OVF.
......................................................................


Patch Set 5:

(1 comment)

http://gerrit.ovirt.org/#/c/34734/5/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/OvfDataUpdater.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/OvfDataUpdater.java:

Line 509:                 DbFacade.getInstance()
Line 510:                         .getVmDeviceDao()
Line 511:                         .getVmDeviceByVmIdAndType(vmBase.getId(), 
VmDeviceGeneralType.VIDEO);
Line 512:         for (VmDevice device : devices) {
Line 513:             if (device.getType() == VmDeviceGeneralType.VIDEO) {
after you changed that dao call the if condition is no longer neccessary 

the loop can be removed completely - replace it with use of 
Entities.businessEntitiesById
Line 514:                 managedDeviceMap.put(device.getDeviceId(), device);
Line 515:             }
Line 516:         }
Line 517:     }


-- 
To view, visit http://gerrit.ovirt.org/34734
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I5583edadd75bce7dfb3f5ba04cfcbe38f1dc7091
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Arik Hadas <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Liron Aravot <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[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

Reply via email to