Skip to content

Commit 35a30f2

Browse files
committed
fix to allow hosts to get added
1 parent 8ff139e commit 35a30f2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

plugins/hypervisors/xenserver/src/main/java/com/cloud/hypervisor/xenserver/resource/XenServerConnectionPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ public static XenServerConnectionPool getInstance() {
412412
return s_instance;
413413
}
414414

415-
public class XenServerConnection extends Connection {
415+
public class XenServerConnection extends ConnectionNew {
416416
long _interval;
417417
int _retries;
418418
String _ip;

plugins/hypervisors/xenserver/src/main/java/com/xensource/xenapi/ConnectionNew.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public XmlRpcClientConfigImpl getConfig()
9595
return config;
9696
}
9797

98-
static class CustomerMapParser extends RecursiveTypeParserImpl {
98+
static class CustomMapParser extends RecursiveTypeParserImpl {
9999

100100
private int level = 0;
101101
private StringBuffer nameBuffer = new StringBuffer();
@@ -105,7 +105,7 @@ static class CustomerMapParser extends RecursiveTypeParserImpl {
105105
private boolean inValue;
106106
private boolean doneValue;
107107

108-
public CustomerMapParser(XmlRpcStreamConfig pConfig, NamespaceContextImpl pContext, TypeFactory pFactory) {
108+
public CustomMapParser(XmlRpcStreamConfig pConfig, NamespaceContextImpl pContext, TypeFactory pFactory) {
109109
super(pConfig, pContext, pFactory);
110110
}
111111

@@ -251,7 +251,7 @@ private XmlRpcClient getClientFromURL(URL url, int replyWait, int connWait)
251251
public TypeParser getParser(XmlRpcStreamConfig pConfig, NamespaceContextImpl pContext, String pURI, String pLocalName) {
252252
TypeParser parser = super.getParser(pConfig, pContext, pURI, pLocalName);
253253
if (parser instanceof MapParser) {
254-
return new CustomerMapParser(pConfig, pContext, this);
254+
return new CustomMapParser(pConfig, pContext, this);
255255
}
256256
return parser;
257257
}

0 commit comments

Comments
 (0)