mirror of https://github.com/apache/jclouds.git
patch as per issue 739
This commit is contained in:
parent
15657dc3c5
commit
f4656c9e05
|
@ -342,7 +342,8 @@ public class JschSshClient implements SshClient {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Throwable arg0) {
|
public boolean apply(Throwable arg0) {
|
||||||
return arg0.getMessage() != null && arg0.getMessage().indexOf(input) != -1;
|
return (arg0.toString().indexOf(input) != -1)
|
||||||
|
|| (arg0.getMessage() != null && arg0.getMessage().indexOf(input) != -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -396,7 +396,8 @@ public class SshjSshClient implements SshClient {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Throwable arg0) {
|
public boolean apply(Throwable arg0) {
|
||||||
return arg0.getMessage() != null && arg0.getMessage().indexOf(input) != -1;
|
return (arg0.toString().indexOf(input) != -1)
|
||||||
|
|| (arg0.getMessage() != null && arg0.getMessage().indexOf(input) != -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue