GitLab steht aufgrund wichtiger Wartungsarbeiten am Montag, den 12. April, ab 19:00 Uhr nicht zur Verfügung.

Commit c3c503d2 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Rename method that validates runner tag constrains

parent 52ba3a2d
...@@ -26,7 +26,7 @@ class Runner < ActiveRecord::Base ...@@ -26,7 +26,7 @@ class Runner < ActiveRecord::Base
.where("ci_runner_projects.gl_project_id = :project_id OR ci_runners.is_shared = true", project_id: project_id) .where("ci_runner_projects.gl_project_id = :project_id OR ci_runners.is_shared = true", project_id: project_id)
end end
validate :verify_tags_constraints validate :tag_constraints
acts_as_taggable acts_as_taggable
...@@ -105,7 +105,7 @@ def has_tags? ...@@ -105,7 +105,7 @@ def has_tags?
private private
def verify_tags_constraints def tag_constraints
unless has_tags? || run_untagged? unless has_tags? || run_untagged?
errors.add(:tags_list, errors.add(:tags_list,
'can not be empty when runner is not allowed to pick untagged jobs') 'can not be empty when runner is not allowed to pick untagged jobs')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment