mirror of https://github.com/apache/cloudstack.git
don't throw exceptions when you can't add host
This commit is contained in:
parent
01b2a32ed9
commit
9c49f29171
|
|
@ -250,7 +250,11 @@ public class XcpServerDiscoverer extends DiscovererBase implements Discoverer, L
|
|||
} catch (UnknownHostException e) {
|
||||
s_logger.warn("Unable to resolve the host name", e);
|
||||
return null;
|
||||
} finally {
|
||||
} catch (Exception e) {
|
||||
s_logger.debug("other exceptions: " + e.toString());
|
||||
return null;
|
||||
}
|
||||
finally {
|
||||
if (conn != null) {
|
||||
XenServerConnectionPool.logout(conn);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue