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

Fix undefined method errors

parent 3089a558
...@@ -8,13 +8,13 @@ module SystemCheck ...@@ -8,13 +8,13 @@ module SystemCheck
def self.current_version def self.current_version
@current_version ||= begin @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']) Gitlab::VersionInfo.parse(client.info['version']['number'])
end end
end end
def skip? def skip?
!current_application_settings.elasticsearch_indexing? !Gitlab::CurrentSettings.current_application_settings.elasticsearch_indexing?
end end
def check? def check?
......
...@@ -132,7 +132,7 @@ namespace :gitlab do ...@@ -132,7 +132,7 @@ namespace :gitlab do
end end
def ensure_write_to_authorized_keys_is_enabled 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 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