You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ke...@apache.org on 2013/10/24 20:42:52 UTC
git commit: updated refs/heads/master to ed0fbcc
Updated Branches:
refs/heads/master a1be4fffe -> ed0fbcc81
CLOUDSTACK-4950: fix the problem to support sessions to multiple vCenter instance
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ed0fbcc8
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ed0fbcc8
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ed0fbcc8
Branch: refs/heads/master
Commit: ed0fbcc81c1928062054190ffcfab8bb59969cc2
Parents: a1be4ff
Author: Kelven Yang <ke...@gmail.com>
Authored: Thu Oct 24 11:41:49 2013 -0700
Committer: Kelven Yang <ke...@gmail.com>
Committed: Thu Oct 24 11:42:41 2013 -0700
----------------------------------------------------------------------
.../src/com/cloud/hypervisor/vmware/util/VmwareClient.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ed0fbcc8/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareClient.java
----------------------------------------------------------------------
diff --git a/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareClient.java b/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareClient.java
index b20217a..d1adbc2 100644
--- a/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareClient.java
+++ b/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareClient.java
@@ -88,8 +88,6 @@ public class VmwareClient {
}
};
HttpsURLConnection.setDefaultHostnameVerifier(hv);
-
- vimService = new VimService();
} catch (Exception e) {
}
}
@@ -107,7 +105,7 @@ public class VmwareClient {
}
private ManagedObjectReference SVC_INST_REF = new ManagedObjectReference();
- private static VimService vimService;
+ private VimService vimService;
private VimPortType vimPort;
private String serviceCookie;
private final String SVC_INST_NAME = "ServiceInstance";
@@ -127,6 +125,7 @@ public class VmwareClient {
SVC_INST_REF.setType(SVC_INST_NAME);
SVC_INST_REF.setValue(SVC_INST_NAME);
+ vimService = new VimService();
vimPort = vimService.getVimPort();
Map<String, Object> ctxt = ((BindingProvider) vimPort).getRequestContext();