mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
don't throw exceptions when you can't add host
This commit is contained in:
parent
6ef5530994
commit
e2282ba800
@ -264,7 +264,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) {
|
||||
try{
|
||||
Session.logout(conn);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user