From 14b4cb60d69b213468f5b8705a7fe4c4a8b072b4 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):