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):