Merge pull request #8166 from scottbrown/bugfix-ansible-vault-read-password-does-not-close-file-handle

Fixing improperly closed file handle in ansible vault
pull/8176/merge
Michael DeHaan 11 years ago
commit bc194740c8

@ -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…
Cancel
Save