Skip to content

Commit b7da94f

Browse files
committed
Revert "CLOUDSTACK-4950: fix the problem to support sessions to multiple vCenter instance"
This reverts commit 7c3a7fe.
1 parent e312282 commit b7da94f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareClient.java‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ public boolean verify(String urlHostName, SSLSession session) {
9090
}
9191
};
9292
HttpsURLConnection.setDefaultHostnameVerifier(hv);
93+
94+
vimService = new VimService();
9395
} catch (Exception e) {
9496
}
9597
}
@@ -107,7 +109,7 @@ private static void trustAllHttpsCertificates() throws Exception {
107109
}
108110

109111
private ManagedObjectReference SVC_INST_REF = new ManagedObjectReference();
110-
private VimService vimService;
112+
private static VimService vimService;
111113
private VimPortType vimPort;
112114
private String serviceCookie;
113115
private final String SVC_INST_NAME = "ServiceInstance";
@@ -127,7 +129,6 @@ public void connect(String url, String userName, String password) throws Excepti
127129
SVC_INST_REF.setType(SVC_INST_NAME);
128130
SVC_INST_REF.setValue(SVC_INST_NAME);
129131

130-
vimService = new VimService();
131132
vimPort = vimService.getVimPort();
132133
Map<String, Object> ctxt = ((BindingProvider) vimPort).getRequestContext();
133134

0 commit comments

Comments
 (0)