diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-22 00:08:57 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-22 00:08:57 +0000 |
commit | 4584816f15e57af3fbbf1d1280b691549384e1aa (patch) | |
tree | 4679d46df039ee9ae399da1f7963616cd06af5e8 /lib/gitlab/config | |
parent | 4c344d3be4b52751778ae896d2f9b19a6135540b (diff) | |
download | gitlab-ce-4584816f15e57af3fbbf1d1280b691549384e1aa.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/config')
-rw-r--r-- | lib/gitlab/config/entry/configurable.rb | 4 | ||||
-rw-r--r-- | lib/gitlab/config/entry/node.rb | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/gitlab/config/entry/configurable.rb b/lib/gitlab/config/entry/configurable.rb index 571e7a5127e..6bf77ebaa5b 100644 --- a/lib/gitlab/config/entry/configurable.rb +++ b/lib/gitlab/config/entry/configurable.rb @@ -62,7 +62,9 @@ module Gitlab class_methods do def nodes - Hash[(@nodes || {}).map { |key, factory| [key, factory.dup] }] + return {} unless @nodes + + @nodes.transform_values(&:dup) end def reserved_node_names diff --git a/lib/gitlab/config/entry/node.rb b/lib/gitlab/config/entry/node.rb index 84d3409ed91..f653df20b2e 100644 --- a/lib/gitlab/config/entry/node.rb +++ b/lib/gitlab/config/entry/node.rb @@ -68,7 +68,7 @@ module Gitlab value.specified? && value.relevant? end - Hash[meaningful.map { |key, entry| [key, entry.value] }] + meaningful.transform_values { |entry| entry.value } end end |