You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by mt...@apache.org on 2014/08/20 21:19:00 UTC
git commit: updated refs/heads/master to ffa4d73
Repository: cloudstack
Updated Branches:
refs/heads/master 8d0817860 -> ffa4d7329
Update to volume-resize logic
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ffa4d732
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ffa4d732
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ffa4d732
Branch: refs/heads/master
Commit: ffa4d73290599390aea586517e12daab92e8ae64
Parents: 8d08178
Author: Mike Tutkowski <mi...@solidfire.com>
Authored: Wed Aug 20 13:18:06 2014 -0600
Committer: Mike Tutkowski <mi...@solidfire.com>
Committed: Wed Aug 20 13:18:33 2014 -0600
----------------------------------------------------------------------
server/src/com/cloud/storage/VolumeApiServiceImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ffa4d732/server/src/com/cloud/storage/VolumeApiServiceImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/storage/VolumeApiServiceImpl.java b/server/src/com/cloud/storage/VolumeApiServiceImpl.java
index 11d1f73..fa104ed 100644
--- a/server/src/com/cloud/storage/VolumeApiServiceImpl.java
+++ b/server/src/com/cloud/storage/VolumeApiServiceImpl.java
@@ -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);
}