Yair Zaslavsky has posted comments on this change.
Change subject: core: Use VdsValidator in canDoAction of ActivateVds
......................................................................
Patch Set 1: (3 inline comments)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsValidator.java
Line 47: return result;
Line 48: }
Line 49:
Line 50: public ValidationResult exist() {
Line 51: if (vds == null) {
Of course :)
Line 52: return new
ValidationResult(VdcBllMessages.VDS_DOES_NOT_EXIST);
Line 53: }
Line 54: return ValidationResult.VALID;
Line 55: }
Line 53: }
Line 54: return ValidationResult.VALID;
Line 55: }
Line 56:
Line 57: public ValidationResult validStatusForActivation() {
Agreed.
Line 58: if (vds.getStatus().equals(VDSStatus.Up)) {
Line 59: return new ValidationResult(VdcBllMessages.VDS_ALREADY_UP);
Line 60: }
Line 61: return ValidationResult.VALID;
Line 54: return ValidationResult.VALID;
Line 55: }
Line 56:
Line 57: public ValidationResult validStatusForActivation() {
Line 58: if (vds.getStatus().equals(VDSStatus.Up)) {
Right, thanks for these comments.
Line 59: return new ValidationResult(VdcBllMessages.VDS_ALREADY_UP);
Line 60: }
Line 61: return ValidationResult.VALID;
Line 62: }
--
To view, visit http://gerrit.ovirt.org/16649
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie9a887de27757cd8ff89c8d68eb916be68d327fd
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: Martin Peřina <[email protected]>
Gerrit-Reviewer: Ravi Nori <[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