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:
parent
08ba18668b
commit
6b53ac8a9a
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ class Cli(object):
|
||||||
this_path = os.path.expanduser(options.vault_password_file)
|
this_path = os.path.expanduser(options.vault_password_file)
|
||||||
try:
|
try:
|
||||||
f = open(this_path, "rb")
|
f = open(this_path, "rb")
|
||||||
tmp_vault_pass=f.read()
|
tmp_vault_pass=f.read().strip()
|
||||||
f.close()
|
f.close()
|
||||||
except (OSError, IOError), e:
|
except (OSError, IOError), e:
|
||||||
raise errors.AnsibleError("Could not read %s: %s" % (this_path, e))
|
raise errors.AnsibleError("Could not read %s: %s" % (this_path, e))
|
||||||
|
|
Loading…
Reference in a new issue