1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Strip() vault password file

This commit is contained in:
Jakub Paweł Głazik 2014-03-25 16:10:04 +01:00
parent caa0b02962
commit 08ba18668b

View file

@ -122,7 +122,7 @@ def main(args):
this_path = os.path.expanduser(options.vault_password_file)
try:
f = open(this_path, "rb")
tmp_vault_pass=f.read()
tmp_vault_pass=f.read().strip()
f.close()
except (OSError, IOError), e:
raise errors.AnsibleError("Could not read %s: %s" % (this_path, e))