diff options
author | Pablo Carranza <pcarranza@gmail.com> | 2016-03-11 12:41:18 +0000 |
---|---|---|
committer | Pablo Carranza <pcarranza@gmail.com> | 2016-03-24 20:48:27 +0000 |
commit | aedf824d2d7f5bce34d9e8dba728af05ea236b79 (patch) | |
tree | 463c14e9519eb11344e451fe8c2b1ae5b4031a08 /lib | |
parent | 459e44826b5d5499a3fbf0a4c5c78988fabd8481 (diff) | |
download | gitlab-shell-aedf824d2d7f5bce34d9e8dba728af05ea236b79.tar.gz |
Change use of fingerprint for whole key
Diffstat (limited to 'lib')
-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 |