Commit 720047a6 authored by Pablo Carranza's avatar Pablo Carranza

Change the key format when generating the authorized key to match the legacy one

parent 79aed51b
...@@ -19,7 +19,7 @@ require_relative "../lib/gitlab_keys" ...@@ -19,7 +19,7 @@ require_relative "../lib/gitlab_keys"
authorized_key = GitlabNet.new.authorized_key(key) authorized_key = GitlabNet.new.authorized_key(key)
unless authorized_key.nil? 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 else
puts "# No key was found for #{key}" puts "# No key was found for #{key}"
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment