Update to volume-resize logic

This commit is contained in:
Mike Tutkowski 2014-08-20 13:18:06 -06:00
parent 8d0817860f
commit ffa4d73290

View File

@ -998,7 +998,7 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
StoragePoolVO storagePool = _storagePoolDao.findById(vol.getPoolId());
if (currentSize != newSize && storagePool.isManaged()) {
if (hosts.length > 0) {
if (hosts != null && hosts.length > 0) {
volService.resizeVolumeOnHypervisor(volumeId, newSize, hosts[0], instanceName);
}