From 638642f464823a2cbc263c97014e737ed528b790 Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 11 Jun 2013 16:31:20 -0700 Subject: don't assume ssh keys will be RSA. --- lib/leap_cli/ssh_key.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/leap_cli/ssh_key.rb') 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) -- cgit v1.2.3