Commit da75618b authored by Dylan Griffith's avatar Dylan Griffith

Make Ci::Runner#assign_to keep returning RunnerProject

parent 03ff1da2
...@@ -120,8 +120,9 @@ module Ci ...@@ -120,8 +120,9 @@ module Ci
raise ArgumentError, 'Transitioning a group runner to a project runner is not supported' raise ArgumentError, 'Transitioning a group runner to a project runner is not supported'
end end
self.projects << project runner_project = project.runner_projects.create(runner_id: self.id)
self.save! self.save!
runner_project
end end
def display_name def display_name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment