Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ public void updateStoragePool(StoragePool storagePool, Map<String, String> detai
if(capacityBytes != null){
long usedBytes = _capacityMgr.getUsedBytes(storagePoolVO);

if (Long.valueOf(capacityBytes) < usedBytes) {
if (Long.parseLong(capacityBytes) < usedBytes) {
throw new CloudRuntimeException("Cannot reduce the number of bytes for this storage pool as it would lead to an insufficient number of bytes");
}

Expand Down