Skip to content
Snippets Groups Projects
Commit b85d4969 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Return compound value if CI config node is composite

parent 7759242a
No related branches found
No related tags found
1 merge request!4820Move global ci entries handling from legacy to new config
Pipeline #
Loading
@@ -47,7 +47,12 @@ module Gitlab
Loading
@@ -47,7 +47,12 @@ module Gitlab
end end
   
def value def value
@config if leaf?
@config
else
defined = @nodes.select { |_key, value| value.defined? }
Hash[(defined).map { |key, node| [key, node.value] }]
end
end end
   
def defined? def defined?
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment