Commit b85d4969 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Return compound value if CI config node is composite

parent 7759242a
...@@ -47,7 +47,12 @@ module Gitlab ...@@ -47,7 +47,12 @@ module Gitlab
end end
def value def value
if leaf?
@config @config
else
defined = @nodes.select { |_key, value| value.defined? }
Hash[(defined).map { |key, node| [key, node.value] }]
end
end end
def defined? def defined?
......
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