diff options
-rw-r--r-- | app/models/clusters/applications/runner.rb | 5 |
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 |