You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2013/10/25 00:56:26 UTC

[02/12] git commit: updated refs/heads/ui-restyle to e13c32f

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/ui-restyle
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();