DaanHoogland commented on code in PR #14140:
URL: https://github.com/apache/cloudstack/pull/14140#discussion_r4380870420
##########
server/src/main/java/com/cloud/resourcelimit/ResourceLimitManagerImpl.java:
##########
@@ -931,7 +931,7 @@ public ResourceLimitVO updateResourceLimit(Long accountId,
Long domainId, Intege
}
//only Unlimited value is accepted if account is Root Admin
- if (_accountMgr.isRootAdmin(account.getId()) && max.shortValue()
!= Resource.RESOURCE_UNLIMITED) {
+ if (_accountMgr.isRootAdmin(account.getId()) && max !=
Resource.RESOURCE_UNLIMITED) {
Review Comment:
```suggestion
if (_accountMgr.isRootAdmin(account.getId()) && max !=
(long)Resource.RESOURCE_UNLIMITED {
```
just to be sure
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]