Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

Commit

Permalink
Fix adding runner to project
Browse files Browse the repository at this point in the history
  • Loading branch information
dzaporozhets committed Jul 9, 2013
1 parent 45a0336 commit 9aca33e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/runner_projects_controller.rb
Expand Up @@ -10,7 +10,7 @@ def index
def create
@runner = Runner.find(params[:runner_project][:runner_id])

if @runner.assign_to(@project, current_user)
if @runner.assign_to(project, current_user)
redirect_to project_runner_projects_path
else
redirect_to project_runner_projects_path, alert: 'Failed adding runner deploy key to GitLab project'
Expand Down
1 change: 1 addition & 0 deletions app/models/runner.rb
Expand Up @@ -38,6 +38,7 @@ def assign_to(project, current_user)
raise "Can't add deploy key" unless result
end
rescue => ex
logger.warn "Assign runner to project failed: #{ex}"
false
end
end

0 comments on commit 9aca33e

Please sign in to comment.