diff options
author | Markus Doits <markus.doits@stellenticket.de> | 2018-09-19 19:03:12 +0300 |
---|---|---|
committer | Markus Doits <markus.doits@stellenticket.de> | 2018-11-07 15:01:57 +0300 |
commit | ffcc200a68fd6d08707a8fd70b128a79206fd69e (patch) | |
tree | af1f3afd9c62a3f5f0ab578d3a58ed52da972ee9 /lib/gitlab/ci | |
parent | 452a4399be2a2a869b2e3f7487669e0c5c74dcb2 (diff) |
fix allowed keys validator to use correct attribute as error base?
Diffstat (limited to 'lib/gitlab/ci')
-rw-r--r-- | lib/gitlab/ci/config/entry/validators.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/ci/config/entry/validators.rb b/lib/gitlab/ci/config/entry/validators.rb index 137694ff93d..af902eb0ee8 100644 --- a/lib/gitlab/ci/config/entry/validators.rb +++ b/lib/gitlab/ci/config/entry/validators.rb @@ -10,8 +10,8 @@ module Gitlab unknown_keys = value.try(:keys).to_a - options[:in] if unknown_keys.any? - record.errors.add(:config, "#{attribute} contains unknown keys: " + - unknown_keys.join(', ')) + record.errors.add(attribute, "contains unknown keys: " + + unknown_keys.join(', ')) end end end |