Commit 20ccd446 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Do not require Ci config node to have a hash value

parent 6a319fd2
...@@ -5,6 +5,14 @@ module Gitlab ...@@ -5,6 +5,14 @@ module Gitlab
module Configurable module Configurable
extend ActiveSupport::Concern extend ActiveSupport::Concern
def initialize(*)
super
unless leaf? || has_config?
@errors << 'should be a configuration entry with hash value'
end
end
def keys def keys
self.class.nodes || {} self.class.nodes || {}
end end
......
...@@ -13,10 +13,6 @@ module Gitlab ...@@ -13,10 +13,6 @@ module Gitlab
@parent = parent @parent = parent
@nodes = {} @nodes = {}
@errors = [] @errors = []
unless leaf? || has_config?
@errors << 'should be a configuration entry with hash value'
end
end end
def process! def process!
......
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