liron aravot has posted comments on this change.

Change subject: engine: add qouta mode check in consume storage
......................................................................


Patch Set 2: (1 inline comment)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/quota/QuotaManager.java
Line 152:             if (!hasStorageId){
Line 153:                 if(quota.getQuotaEnforcementType() == 
QuotaEnforcementTypeEnum.HARD_ENFORCEMENT){
Line 154:                     parameters.getCanDoActionMessages()
Line 155:                     
.add(VdcBllMessages.ACTION_TYPE_FAILED_NO_QUOTA_SET_FOR_DOMAIN.toString());
Line 156:                     return false;
suggestion - you can eliminate the else cluase..you have return statement in 
the "if"
Line 157:                 } else {
Line 158:                     
auditLogPair.setFirst(AuditLogType.MISSING_QUOTA_STORAGE_PARAMETERS_PERMISSIVE_MODE);
Line 159:                 }
Line 160:             }


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I21cc59098ede7044ebde1d544e295300d8b40cb7
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Noam Slomianko <[email protected]>
Gerrit-Reviewer: Doron Fediuck <[email protected]>
Gerrit-Reviewer: Noam Slomianko <[email protected]>
Gerrit-Reviewer: liron aravot <[email protected]>
Gerrit-Reviewer: ofri masad <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to