Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/models/clusters/applications/runner.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/models/clusters/applications/runner.rb b/app/models/clusters/applications/runner.rb
index f0256ff4d41..69d70044021 100644
--- a/app/models/clusters/applications/runner.rb
+++ b/app/models/clusters/applications/runner.rb
@@ -13,7 +13,6 @@ module Clusters
include ::Clusters::Concerns::ApplicationData
belongs_to :runner, class_name: 'Ci::Runner', foreign_key: :runner_id
- delegate :project, :group, to: :cluster
default_value_for :version, VERSION
@@ -69,9 +68,9 @@ module Clusters
}
if cluster.group_type?
- attributes[:groups] = [group]
+ attributes[:groups] = [cluster.first_group]
elsif cluster.project_type?
- attributes[:projects] = [project]
+ attributes[:projects] = [cluster.first_project]
end
attributes