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:
1 parent
e880d38beb
commit
44d7cce3a0
1 file changed
+1
-1
@@ -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())
|
||||
|
||||
|
||||
Reference in new issue
Block a user