Skip to content

Allow SshHostKey.find_by to accept string keys

Nick Thomas requested to merge (removed):ssh-host-key-indifferent into master

What does this MR do?

Follow-up to https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24884#note_138021706

SshHostKey is not an ActiveRecord, but implements a find_by method that pretends to be one. This MR allows that method to receive options from a hash with string keys as well as from a hash with symbol keys, bringing its behaviour closer to that expected from a find_by method provided by Rails.

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Merge request reports