Commit e2040937 authored by Stan Hu's avatar Stan Hu

Merge branch 'mk-fix-ee-only-current-application-settings' into 'master'

Fix undefined method errors

See merge request gitlab-org/gitlab-ee!2938
parents 3089a558 33ebf5ba
......@@ -8,13 +8,13 @@ module SystemCheck
def self.current_version
@current_version ||= begin
client = Gitlab::Elastic::Client.build(current_application_settings.elasticsearch_config)
client = Gitlab::Elastic::Client.build(Gitlab::CurrentSettings.current_application_settings.elasticsearch_config)
Gitlab::VersionInfo.parse(client.info['version']['number'])
end
end
def skip?
!current_application_settings.elasticsearch_indexing?
!Gitlab::CurrentSettings.current_application_settings.elasticsearch_indexing?
end
def check?
......
......@@ -132,7 +132,7 @@ namespace :gitlab do
end
def ensure_write_to_authorized_keys_is_enabled
return if current_application_settings.authorized_keys_enabled
return if Gitlab::CurrentSettings.current_application_settings.authorized_keys_enabled
puts authorized_keys_is_disabled_warning
......
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