summaryrefslogtreecommitdiffstats
path: root/bin/ansible-vault
diff options
context:
space:
mode:
authorScott Brown <scott@justplainsimple.com>2014-07-16 17:48:41 +0200
committerScott Brown <scott@justplainsimple.com>2014-07-16 17:48:41 +0200
commit5849bb3dba84309055b4fadeebf7c5dfb9b69c95 (patch)
tree4472b146a0902c2c4ea8fd85f2cf776e15ad9f6a /bin/ansible-vault
parentMerge pull request #8156 from jirutka/fix-layman (diff)
downloadansible-5849bb3dba84309055b4fadeebf7c5dfb9b69c95.tar.xz
ansible-5849bb3dba84309055b4fadeebf7c5dfb9b69c95.zip
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.
Diffstat (limited to 'bin/ansible-vault')
-rwxr-xr-xbin/ansible-vault2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ansible-vault b/bin/ansible-vault
index 4929e1c2a1..ffdb34de37 100755
--- a/bin/ansible-vault
+++ b/bin/ansible-vault
@@ -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