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 authored and Florence Blanc-Renaud committed 2022-07-05 14:29:27 +02:00
1 parent cb0ce1bd8b
commit f8da5bfbea
1 file changed
+2 -1
+2 -1
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):