diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-10 13:40:30 +0300 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-10 13:40:30 +0300 |
commit | cd834b46a8b84eaf14891854925502800acff475 (patch) | |
tree | 8f6cc1350cc33568b1ba7640cf3cafad11797355 /app/models/ci | |
parent | 84fa061086250b9f59eb51eb8728702dfedb7546 (diff) |
Ensure Ci::Runner#assign_to errors for group runners
Diffstat (limited to 'app/models/ci')
-rw-r--r-- | app/models/ci/runner.rb | 2 |
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 |