1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixing bug where the file handle is not closed properly because the parentheses are left off the call, telling Python to return a method but not call the method.

This commit is contained in:
Scott Brown 2014-07-16 08:48:41 -07:00
parent 616d749ab3
commit 5849bb3dba

View file

@ -107,7 +107,7 @@ def get_opt(options, k, defval=""):
def _read_password(filename): def _read_password(filename):
f = open(filename, "rb") f = open(filename, "rb")
data = f.read() data = f.read()
f.close f.close()
data = data.strip() data = data.strip()
return data return data