diff options
author | Kamil TrzciĆski <ayufan@ayufan.eu> | 2018-05-23 15:29:48 +0200 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-31 10:56:28 +0200 |
commit | 03ff1da278117ce36aaec4e0af267bbc07dc571c (patch) | |
tree | 632577b3d693a6b367aef6fd8397f12b92584684 /app/models/clusters/applications | |
parent | 1fcc9ad7bb60f83824e1e7ead8a0b07c459ab545 (diff) | |
download | gitlab-ce-03ff1da278117ce36aaec4e0af267bbc07dc571c.tar.gz |
Fix some failures
Diffstat (limited to 'app/models/clusters/applications')
-rw-r--r-- | app/models/clusters/applications/runner.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/clusters/applications/runner.rb b/app/models/clusters/applications/runner.rb index b881b4eaf36..e6f795f3e0b 100644 --- a/app/models/clusters/applications/runner.rb +++ b/app/models/clusters/applications/runner.rb @@ -43,7 +43,7 @@ module Clusters def create_and_assign_runner transaction do - project.runners.create!(runner_create_params).tap do |runner| + Ci::Runner.create!(runner_create_params).tap do |runner| update!(runner_id: runner.id) end end @@ -53,7 +53,8 @@ module Clusters { name: 'kubernetes-cluster', runner_type: :project_type, - tag_list: %w(kubernetes cluster) + tag_list: %w(kubernetes cluster), + projects: [project] } end |