diff options
Diffstat (limited to 'lib')
-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 f8239a1..79d0b56 100644 --- a/lib/api/runners.rb +++ b/lib/api/runners.rb @@ -33,10 +33,10 @@ module API runner = if params[:token] == GitlabCi::REGISTRATION_TOKEN # Create shared runner. Requires admin access - Runner.create + Runner.create(description: params[:hostname]) elsif project = Project.find_by(token: params[:token]) # Create a specific runner for project. - project.runners.create + project.runners.create(description: params[:hostname]) end return forbidden! unless runner |