diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-01-28 22:57:34 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-01-28 23:11:15 +0100 |
commit | 297eef8f53bca912ac2ee679f30fdd494ca570ad (patch) | |
tree | 1fbc6ed30a0a200c9e1c905a015facbbc0f4c6f6 /lib/api | |
parent | 9477da8b510a4a40e608c72891d76d4fb0b79978 (diff) | |
download | gitlab-ci-297eef8f53bca912ac2ee679f30fdd494ca570ad.tar.gz |
Rename hostname in Runner's API to description
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/runners.rb | 4 |
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 |