diff options
author | Francesc Esplugas <francesc.esplugas@gmail.com> | 2014-03-02 12:41:07 +0100 |
---|---|---|
committer | Francesc Esplugas <francesc.esplugas@gmail.com> | 2014-03-02 12:41:07 +0100 |
commit | 0fd5829f103cc7c4e7043c22c3c38e9da68cdf5a (patch) | |
tree | 415284f6bc7226d82ab8bfdf0ac9dbac362031c9 /bin/ansible-vault | |
parent | Merge pull request #6235 from Tefnet/patch-1 (diff) | |
download | ansible-0fd5829f103cc7c4e7043c22c3c38e9da68cdf5a.tar.xz ansible-0fd5829f103cc7c4e7043c22c3c38e9da68cdf5a.zip |
get rid of newline chars when reading password file
Diffstat (limited to 'bin/ansible-vault')
-rwxr-xr-x | bin/ansible-vault | 2 |
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): |