Commit 33ebf5ba authored by Michael Kozono's avatar Michael Kozono

Fix undefined method errors

parent 3089a558
......@@ -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