Avoid comparing 'max' with 'max\n'.

Fixes https://pagure.io/freeipa/issue/8764.

Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Jan Pazdziora authored and Florence Blanc-Renaud committed 2021-03-23 10:17:34 +01:00
1 parent e880d38beb
commit 44d7cce3a0
1 file changed
+1 -1
+1 -1
View File
@@ -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())