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