summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-01-28 22:57:34 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2015-01-28 23:11:15 +0100
commit297eef8f53bca912ac2ee679f30fdd494ca570ad (patch)
tree1fbc6ed30a0a200c9e1c905a015facbbc0f4c6f6 /lib
parent9477da8b510a4a40e608c72891d76d4fb0b79978 (diff)
downloadgitlab-ci-297eef8f53bca912ac2ee679f30fdd494ca570ad.tar.gz
Rename hostname in Runner's API to description
Diffstat (limited to 'lib')
-rw-r--r--lib/api/runners.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb
index 16abe00..2a97740 100644
--- a/lib/api/runners.rb
+++ b/lib/api/runners.rb
@@ -34,13 +34,13 @@ module API
if params[:token] == GitlabCi::REGISTRATION_TOKEN
# Create shared runner. Requires admin access
Runner.create(
- description: params[:hostname],
+ description: params[:description],
tag_list: params[:tag_list]
)
elsif project = Project.find_by(token: params[:token])
# Create a specific runner for project.
project.runners.create(
- description: params[:hostname],
+ description: params[:description],
tag_list: params[:tag_list]
)
end