cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kelv...@apache.org
Subject [2/2] git commit: updated refs/heads/4.2 to 7c3a7fe
Date Thu, 24 Oct 2013 18:42:03 GMT
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/7c3a7fe3
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/7c3a7fe3
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/7c3a7fe3

Branch: refs/heads/4.2
Commit: 7c3a7fe312bb649b6e81078e4c26a93f534ce778
Parents: 435689c
Author: Kelven Yang <kelveny@gmail.com>
Authored: Thu Oct 24 11:41:49 2013 -0700
Committer: Kelven Yang <kelveny@gmail.com>
Committed: Thu Oct 24 11:41:49 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/7c3a7fe3/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 ff13b1c..49b04dd 100644
--- a/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareClient.java
+++ b/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareClient.java
@@ -90,8 +90,6 @@ public class VmwareClient {
 	            }
 	        };
 	        HttpsURLConnection.setDefaultHostnameVerifier(hv);
-	        
-        	vimService = new VimService();
 		} catch (Exception e) {
 		}   	
     }
@@ -109,7 +107,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";
@@ -129,6 +127,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();
 


Mime
View raw message