summaryrefslogtreecommitdiffstats
path: root/bin/ansible-vault
diff options
context:
space:
mode:
authorFrancesc Esplugas <francesc.esplugas@gmail.com>2014-03-02 12:41:07 +0100
committerFrancesc Esplugas <francesc.esplugas@gmail.com>2014-03-02 12:41:07 +0100
commit0fd5829f103cc7c4e7043c22c3c38e9da68cdf5a (patch)
tree415284f6bc7226d82ab8bfdf0ac9dbac362031c9 /bin/ansible-vault
parentMerge pull request #6235 from Tefnet/patch-1 (diff)
downloadansible-0fd5829f103cc7c4e7043c22c3c38e9da68cdf5a.tar.xz
ansible-0fd5829f103cc7c4e7043c22c3c38e9da68cdf5a.zip
get rid of newline chars when reading password file
Diffstat (limited to 'bin/ansible-vault')
-rwxr-xr-xbin/ansible-vault2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/ansible-vault b/bin/ansible-vault
index 75250b5e81..902653d40b 100755
--- a/bin/ansible-vault
+++ b/bin/ansible-vault
@@ -105,6 +105,8 @@ def _read_password(filename):
f = open(filename, "rb")
data = f.read()
f.close
+ # get rid of newline chars
+ data = data.strip()
return data
def execute_create(args, options, parser):