summaryrefslogtreecommitdiff
path: root/lib/gitlab_net.rb
diff options
context:
space:
mode:
authorPablo Carranza <pcarranza@gmail.com>2016-03-11 12:41:18 +0000
committerPablo Carranza <pcarranza@gmail.com>2016-03-24 20:48:27 +0000
commitaedf824d2d7f5bce34d9e8dba728af05ea236b79 (patch)
tree463c14e9519eb11344e451fe8c2b1ae5b4031a08 /lib/gitlab_net.rb
parent459e44826b5d5499a3fbf0a4c5c78988fabd8481 (diff)
downloadgitlab-shell-aedf824d2d7f5bce34d9e8dba728af05ea236b79.tar.gz
Change use of fingerprint for whole key
Diffstat (limited to 'lib/gitlab_net.rb')
-rw-r--r--lib/gitlab_net.rb4
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