From 7f91a9a10dc8071d14d3ffaea001e32ac2f70180 Mon Sep 17 00:00:00 2001 From: Semenyuk Dmitriy Date: Fri, 25 Apr 2014 13:35:21 +0600 Subject: [PATCH] Fixed: create project deploy key --- lib/gitlab/client/projects.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gitlab/client/projects.rb b/lib/gitlab/client/projects.rb index a3cfce2e1..3938970c4 100644 --- a/lib/gitlab/client/projects.rb +++ b/lib/gitlab/client/projects.rb @@ -249,7 +249,7 @@ def deploy_key(project, id) # @param [String] key The content of a deploy key. # @return [Gitlab::ObjectifiedHash] Information about created deploy key. def create_deploy_key(project, title, key) - post("/projects/#{project}/keys", title: title, key: key) + post("/projects/#{project}/keys", body: {title: title, key: key}) end # Deletes a deploy key from project.