install: suggest --skip-mem-check when mem check fails

In the memory check failure message, add a hint to the administrator
that they can use the --skip-mem-check flag to skip the check.

Related: https://pagure.io/freeipa/issue/8404

Signed-off-by: Fraser Tweedale <frase@frase.id.au>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
Fraser Tweedale 2022-07-04 22:50:57 +10:00 committed by Florence Blanc-Renaud
parent cb0ce1bd8b
commit f8da5bfbea

View File

@ -1132,7 +1132,8 @@ def check_available_memory(ca=False):
if available < minimum_suggested:
raise ScriptError(
"Less than the minimum 1.2GB of RAM is available, "
"%.2fGB available" % (available / (1024 * 1024 * 1024))
"%.2fGB available. Use --skip-mem-check to suppress this check."
% (available / (1024 * 1024 * 1024))
)
def load_external_cert(files, ca_subject):