Merge branch 'ignore-unknown-secrets' into 'master'

Ignore unknown sections to provide backwards compatbility

Closes gitlab-org/gitlab-ce#2444

See merge request !461
This commit is contained in:
Marin Jankovski 2015-09-07 07:28:35 +00:00 committed by Marin Jankovski
parent 44a192fa6c
commit ef76c81d7b
1 changed files with 7 additions and 3 deletions

View File

@ -225,9 +225,13 @@ class SecretsHelper
end
existing_secrets.each do |k, v|
v.each do |pk, p|
# Note: Specifiying a secret in gitlab.rb will take precendence over "gitlab-secrets.json"
Gitlab[k][pk] ||= p
if Gitlab[k]
v.each do |pk, p|
# Note: Specifiying a secret in gitlab.rb will take precendence over "gitlab-secrets.json"
Gitlab[k][pk] ||= p
end
else
warn("Ignoring section #{k} in /etc/gitlab/giltab-secrets.json, does not exist in gitlab.rb")
end
end
end