> @@ -67,5 +70,19 @@ public SshClient create(HostAndPort socket, > LoginCredentials credentials) { > injector.injectMembers(client);// add logger > return client; > } > + > + @Override > + public boolean existsSshAgent() { > + try { > + ConnectorFactory cf = ConnectorFactory.getDefault(); > + if (cf != null) { > + Connector con = cf.createConnector(); > + if (con != null) { > + return con.isAvailable(); > + } > + } > + } catch (AgentProxyException e) {} > + return false;
Would need to add it into all of the else blocks as well --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/312/files#r10861235