From 0fd5829f103cc7c4e7043c22c3c38e9da68cdf5a Mon Sep 17 00:00:00 2001 From: Francesc Esplugas Date: Sun, 2 Mar 2014 12:41:07 +0100 Subject: [PATCH] get rid of newline chars when reading password file --- bin/ansible-vault | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/ansible-vault b/bin/ansible-vault index 75250b5e813..902653d40bf 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):