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/master to a1d7016
Date Thu, 13 Jun 2013 07:21:40 GMT
Updated Branches:
  refs/heads/master ff0a524bd -> a1d7016b9


CLOUDSTACK-2962 [SM][VMWare]: migrate a virtualMachine with volumes is failing

Checking if source and target hosts belongs to same vcenter datacenter.

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/a1d7016b
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a1d7016b
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a1d7016b

Branch: refs/heads/master
Commit: a1d7016b9d8d12ed4ed1724f5c39cb42c448e1c2
Parents: ff0a524
Author: Sateesh Chodapuneedi <sateesh@apache.org>
Authored: Thu Jun 13 12:49:07 2013 +0530
Committer: Sateesh Chodapuneedi <sateesh@apache.org>
Committed: Thu Jun 13 12:49:07 2013 +0530

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a1d7016b/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
b/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
index 46219c3..3123382 100755
--- a/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
+++ b/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
@@ -3489,7 +3489,7 @@ public class VmwareResource implements StoragePoolResource, ServerResource,
Vmwa
             tgtHyperHost = new HostMO(getServiceContext(), morTgtHost);
             morDc = srcHyperHost.getHyperHostDatacenter();
             morDcOfTargetHost = tgtHyperHost.getHyperHostDatacenter();
-            if (morDc != morDcOfTargetHost) {
+            if (!morDc.getValue().equalsIgnoreCase(morDcOfTargetHost.getValue())) {
                 String msg = "Source host & target host are in different datacentesr";
                 throw new CloudRuntimeException(msg);
             }


Mime
View raw message