You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by sa...@apache.org on 2013/06/13 09:21:40 UTC

git commit: updated refs/heads/master to a1d7016

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 <sa...@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 <sa...@apache.org>
Authored: Thu Jun 13 12:49:07 2013 +0530
Committer: Sateesh Chodapuneedi <sa...@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);
             }