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:
authorDylan Griffith <dyl.griffith@gmail.com>2018-05-10 13:40:30 +0300
committerDylan Griffith <dyl.griffith@gmail.com>2018-05-10 13:40:30 +0300
commitcd834b46a8b84eaf14891854925502800acff475 (patch)
tree8f6cc1350cc33568b1ba7640cf3cafad11797355 /app/models/ci
parent84fa061086250b9f59eb51eb8728702dfedb7546 (diff)
Ensure Ci::Runner#assign_to errors for group runners
Diffstat (limited to 'app/models/ci')
-rw-r--r--app/models/ci/runner.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb
index 359a87a3f77..bda69f85a78 100644
--- a/app/models/ci/runner.rb
+++ b/app/models/ci/runner.rb
@@ -111,6 +111,8 @@ module Ci
if shared?
self.is_shared = false if shared?
self.runner_type = :project_type
+ elsif group_type?
+ raise ArgumentError, 'Transitioning a group runner to a project runner is not supported'
end
self.save