mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 11:10:21 -07:00
Fixes #6820 fix erroneous missing vault password error when using the template module
This commit is contained in:
parent
466ab0a9d6
commit
5a65dc3b6a
4 changed files with 6 additions and 6 deletions
|
@ -85,7 +85,7 @@ class ActionModule(object):
|
|||
|
||||
# template the source data locally & get ready to transfer
|
||||
try:
|
||||
resultant = template.template_from_file(self.runner.basedir, source, inject)
|
||||
resultant = template.template_from_file(self.runner.basedir, source, inject, vault_password=self.runner.vault_pass)
|
||||
except Exception, e:
|
||||
result = dict(failed=True, msg=str(e))
|
||||
return ReturnData(conn=conn, comm_ok=False, result=result)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue