]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
don't assume ssh keys will be RSA.
authorelijah <elijah@riseup.net>
Tue, 11 Jun 2013 23:31:20 +0000 (16:31 -0700)
committerelijah <elijah@riseup.net>
Tue, 11 Jun 2013 23:31:20 +0000 (16:31 -0700)
lib/leap_cli/ssh_key.rb

index daa8bf0acf4beadb3de0e3694faa9f4294bb686d..4b3c98508ab5c2c3055305b55371b91d0a5c6c49 100644 (file)
@@ -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)