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:
parent
616d749ab3
commit
5849bb3dba
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ def get_opt(options, k, defval=""):
|
|||
def _read_password(filename):
|
||||
f = open(filename, "rb")
|
||||
data = f.read()
|
||||
f.close
|
||||
f.close()
|
||||
data = data.strip()
|
||||
return data
|
||||
|
||||
|
|
Loading…
Reference in a new issue