From: elijah Date: Tue, 11 Jun 2013 23:31:20 +0000 (-0700) Subject: don't assume ssh keys will be RSA. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=638642f464823a2cbc263c97014e737ed528b790;p=leap%2Fleap_cli.git don't assume ssh keys will be RSA. --- diff --git a/lib/leap_cli/ssh_key.rb b/lib/leap_cli/ssh_key.rb index daa8bf0..4b3c985 100644 --- a/lib/leap_cli/ssh_key.rb +++ b/lib/leap_cli/ssh_key.rb @@ -112,7 +112,8 @@ module LeapCli def ==(other_key) return false if other_key.nil? - self.params == other_key.params + return false if self.class != other_key.class + return self.to_text == other_key.to_text end def in_known_hosts?(*identifiers)