mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 07:36:41 +10:00
Do not require Ci config node to have a hash value
This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user