cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sate...@apache.org
Subject git commit: updated refs/heads/ova-multiple-disks to 7fb5641
Date Wed, 12 Mar 2014 13:45:58 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/ova-multiple-disks 99eb63ed8 -> 7fb5641f4


CLOUDSTACK-4757 Support OVA with multiple volumes

If no user configured bootdisk available, choose 1st disk.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/7fb5641f
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/7fb5641f
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/7fb5641f

Branch: refs/heads/ova-multiple-disks
Commit: 7fb5641f48f63c72e41b11828b57e910e381c737
Parents: 99eb63e
Author: Sateesh Chodapuneedi <sateesh@apache.org>
Authored: Wed Mar 12 19:14:04 2014 +0530
Committer: Sateesh Chodapuneedi <sateesh@apache.org>
Committed: Wed Mar 12 19:14:04 2014 +0530

----------------------------------------------------------------------
 .../src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7fb5641f/vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java
----------------------------------------------------------------------
diff --git a/vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java b/vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java
index 28fcd1c..8f64a03 100755
--- a/vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java
+++ b/vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java
@@ -1264,8 +1264,8 @@ public class HypervisorHostHelper {
                 sizeKb = ((VirtualDisk)device).getCapacityInKB();
                 if (diskCount == osDiskSeqNumber) {
                     osDisk = true;
-                    diskCount++;
                 }
+                diskCount++;
                 ovfVolumeInfo = new Ternary<String, Long, Boolean>(files.get(diskCount),
sizeKb, osDisk);
                 ovfVolumeInfos.add(ovfVolumeInfo);
             }


Mime
View raw message