summaryrefslogtreecommitdiff
path: root/lib/system_check
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-04-20 10:00:54 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-04-20 10:00:54 +0000
commit3cccd102ba543e02725d247893729e5c73b38295 (patch)
treef36a04ec38517f5deaaacb5acc7d949688d1e187 /lib/system_check
parent205943281328046ef7b4528031b90fbda70c75ac (diff)
downloadgitlab-ce-3cccd102ba543e02725d247893729e5c73b38295.tar.gz
Add latest changes from gitlab-org/gitlab@14-10-stable-eev14.10.0-rc42
Diffstat (limited to 'lib/system_check')
-rw-r--r--lib/system_check/app/git_user_default_ssh_config_check.rb2
-rw-r--r--lib/system_check/base_check.rb12
2 files changed, 4 insertions, 10 deletions
diff --git a/lib/system_check/app/git_user_default_ssh_config_check.rb b/lib/system_check/app/git_user_default_ssh_config_check.rb
index 2876f1eb688..3ae36087f6b 100644
--- a/lib/system_check/app/git_user_default_ssh_config_check.rb
+++ b/lib/system_check/app/git_user_default_ssh_config_check.rb
@@ -31,7 +31,7 @@ module SystemCheck
end
try_fixing_it("mkdir #{backup_dir}", *instructions)
- for_more_information('doc/ssh/index.md in section "Overriding SSH settings on the GitLab server"')
+ for_more_information('doc/user/ssh.md#overriding-ssh-settings-on-the-gitlab-server')
fix_and_rerun
end
diff --git a/lib/system_check/base_check.rb b/lib/system_check/base_check.rb
index c36cacbaf4f..ae3a9412e5c 100644
--- a/lib/system_check/base_check.rb
+++ b/lib/system_check/base_check.rb
@@ -64,20 +64,14 @@ module SystemCheck
call_or_return(@skip_reason) || 'skipped'
end
- # Define a reason why we skipped the SystemCheck (during runtime)
+ # Define or get a reason why we skipped the SystemCheck (during runtime)
#
# This is used when you need dynamic evaluation like when you have
# multiple reasons why a check can fail
#
# @param [String] reason to be displayed
- attr_writer :skip_reason
-
- # Skip reason defined during runtime
- #
- # This value have precedence over the one defined in the subclass
- #
- # @return [String] the reason
- attr_reader :skip_reason
+ # @return [String] reason to be displayed
+ attr_accessor :skip_reason
# Does the check support automatically repair routine?
#