summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPablo Carranza <pcarranza@gmail.com>2016-03-11 18:07:03 +0000
committerPablo Carranza <pcarranza@gmail.com>2016-03-24 20:48:27 +0000
commit720047a65be6c64ebcf2cb4b01765d9e4ec958b2 (patch)
treef18fa37e3291ea6bed00d53c52b2f2e10a3b6e99 /bin
parent79aed51b9010151a48cc519e41d0805e652cb24e (diff)
downloadgitlab-shell-720047a65be6c64ebcf2cb4b01765d9e4ec958b2.tar.gz
Change the key format when generating the authorized key to match the legacy one
Diffstat (limited to 'bin')
-rwxr-xr-xbin/authorized_keys2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/authorized_keys b/bin/authorized_keys
index 1e070ec..6c63efa 100755
--- a/bin/authorized_keys
+++ b/bin/authorized_keys
@@ -19,7 +19,7 @@ require_relative "../lib/gitlab_keys"
authorized_key = GitlabNet.new.authorized_key(key)
unless authorized_key.nil?
- puts GitlabKey.new.key_line(authorized_key["id"], authorized_key["key"])
+ puts GitlabKey.new.key_line("key-#{authorized_key['id']}", authorized_key["key"])
else
puts "# No key was found for #{key}"
end