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
2021-03-19 16:41:24 +01:00
committed by Florence Blanc-Renaud
parent 4d716d3fbc
commit 4769c15f37

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())