diff options
Diffstat (limited to 'lib/gitlab_net.rb')
-rw-r--r-- | lib/gitlab_net.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab_net.rb b/lib/gitlab_net.rb index d5d1ebd..39384c7 100644 --- a/lib/gitlab_net.rb +++ b/lib/gitlab_net.rb @@ -56,8 +56,8 @@ class GitlabNet get("#{host}/check", read_timeout: CHECK_TIMEOUT) end - def authorized_key(fingerprint) - resp = get("#{host}/authorized_keys?fingerprint=#{fingerprint}") + def authorized_key(key) + resp = get("#{host}/authorized_keys?key=#{key}") JSON.parse(resp.body) if resp.code == "200" rescue nil |