don't throw exceptions when you can't add host

This commit is contained in:
edison 2010-08-20 20:19:21 -07:00
parent 01b2a32ed9
commit 9c49f29171
1 changed files with 5 additions and 1 deletions

View File

@ -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);
}