Liron Ar has posted comments on this change.
Change subject: core: improve CDA of AddStorageServerConnection
......................................................................
Patch Set 3: Looks good to me, but someone else must approve
(2 inline comments)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/AddStorageServerConnectionCommand.java
Line 66: }
Line 67:
Line 68: @Override
Line 69: protected boolean canDoAction() {
Line 70: if(super.canDoAction()) {
I prefer to have
if(!super.canDoAction()) {
return false;
}
to avoid nested ifs..but that's matter of taste
Line 71: StorageServerConnections paramConnection =
getParameters().getStorageServerConnection();
Line 72: if (paramConnection.getstorage_type() == StorageType.NFS
Line 73: && !new
NfsMountPointConstraint().isValid(paramConnection.getconnection(), null)) {
Line 74: return
failCanDoAction(VdcBllMessages.VALIDATION_STORAGE_CONNECTION_INVALID);
Line 78
Line 79
Line 80
Line 81
Line 82
perhaps you can add to the commit message that this bug was fixed here as well
:) - the assignment could override the value of "returnValue" to true even if
it was set to false before.
--
To view, visit http://gerrit.ovirt.org/15126
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I00a46aac7d642128c287ef633c492f3c1b85f572
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alissa Bonas <[email protected]>
Gerrit-Reviewer: Alissa Bonas <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Sergey Gotliv <[email protected]>
Gerrit-Reviewer: Vered Volansky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches