summaryrefslogtreecommitdiff
path: root/lib/leap_cli/ssh_key.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/leap_cli/ssh_key.rb')
-rw-r--r--lib/leap_cli/ssh_key.rb3
1 files changed, 2 insertions, 1 deletions
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)