From 44d7cce3a032b7b793708a84198414fba8a276bd Mon Sep 17 00:00:00 2001 From: Jan Pazdziora Date: Fri, 19 Mar 2021 16:41:24 +0100 Subject: [PATCH] Avoid comparing 'max' with 'max\n'. Fixes https://pagure.io/freeipa/issue/8764. Reviewed-By: Rob Crittenden --- ipaserver/install/installutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py index 2e0a1dcd8..4a2915042 100644 --- a/ipaserver/install/installutils.py +++ b/ipaserver/install/installutils.py @@ -1098,7 +1098,7 @@ def check_available_memory(ca=False): ) with open(limit_file) as fd: - limit = fd.readline() + limit = fd.readline().rstrip() with open(usage_file) as fd: used = int(fd.readline())