mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Workaround for NPE
This commit is contained in:
parent
5396dfa55c
commit
4e823e3a3e
@ -1522,7 +1522,13 @@ public class StorageManagerImpl extends ManagerBase implements StorageManager, C
|
||||
}
|
||||
|
||||
long futureIops = currentIops + requestedIops;
|
||||
|
||||
|
||||
// getCapacityIops returns a Long so we need to check for null
|
||||
if (pool.getCapacityIops() == null) {
|
||||
s_logger.warn("Storage pool " + pool.getName() + " (" + pool.getId() + ") does not supply Iops capacity, assuming enough capacity");
|
||||
return true;
|
||||
}
|
||||
|
||||
return futureIops <= pool.getCapacityIops();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user