Frank Kobzik has posted comments on this change.

Change subject: backend: Control virtio rng device
......................................................................


Patch Set 20: -Verified

(1 comment)

http://gerrit.ovirt.org/#/c/18176/20/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AbstractRngDeviceCommand.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AbstractRngDeviceCommand.java:

Line 52:     }
Line 53: 
Line 54:     @Override
Line 55:     protected boolean canDoAction() {
Line 56:         if (getParameters().getRngDevice() == null) {
> is this still needed? i thought there should be entity validation for it no
this is right. however, the bean validation in parameters classes happens 
between constructing instance of the command and calling executeCommand(). i'll 
rewrite it in the following patchset.
Line 57:             return 
failCanDoAction(VdcBllMessages.ACTION_TYPE_RNG_MUST_BE_SPECIFIED);
Line 58:         }
Line 59: 
Line 60:         if (getParameters().getRngDevice().getVmId() == null || 
cachedEntity == null) {


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ifc26a484c84244074426f4b0c790e2cc4ebb8da6
Gerrit-PatchSet: 20
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Frank Kobzik <[email protected]>
Gerrit-Reviewer: Arik Hadas <[email protected]>
Gerrit-Reviewer: Frank Kobzik <[email protected]>
Gerrit-Reviewer: Martin Betak <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Roy Golan <[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