Yair Zaslavsky has posted comments on this change.

Change subject: core: Adds SSH Soft Fencing capability
......................................................................


Patch Set 11: (1 inline comment)

You copied the logic of VdsNotRespondingTreatment.shouldVdsBeFenced() - please 
reuse the code  (feel free to introduce HostUtils class at bll and have a 
helper method, another option is to finally introduce a Host/VdsValidator 
similar to StoragePoolValidator and have the boolean method there.

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/SshSoftFencingCommand.java
Line 32:     @Override
Line 33:     protected boolean canDoAction() {
Line 34:         boolean result = true;
Line 35:         if (getVds() == null) {
Line 36:             
addCanDoActionMessage(VdcBllMessages.ACTION_TYPE_FAILED_HOST_NOT_EXIST);
why not add the check of shouldVdsBeFenced at canDoAction instead of execte?
Line 37:             result = false;
Line 38:         }
Line 39: 
Line 40:         getReturnValue().setSucceeded(result);


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I8002b6ac00a1e2e543b5cc8d1affdd42b994d5f7
Gerrit-PatchSet: 11
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Peřina <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Martin Peřina <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to