mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 22:11:44 -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
|
@ -199,7 +199,7 @@ class J2Template(jinja2.environment.Template):
|
|||
def new_context(self, vars=None, shared=False, locals=None):
|
||||
return jinja2.runtime.Context(self.environment, vars.add_locals(locals), self.name, self.blocks)
|
||||
|
||||
def template_from_file(basedir, path, vars):
|
||||
def template_from_file(basedir, path, vars, vault_password=None):
|
||||
''' run a file through the templating engine '''
|
||||
|
||||
fail_on_undefined = C.DEFAULT_UNDEFINED_VAR_BEHAVIOR
|
||||
|
|
|
@ -451,7 +451,6 @@ class VaultAES256(object):
|
|||
derivedkey = PBKDF2(password, salt, dkLen=(2 * keylength) + ivlength,
|
||||
count=10000, prf=pbkdf2_prf)
|
||||
|
||||
#import epdb; epdb.st()
|
||||
key1 = derivedkey[:keylength]
|
||||
key2 = derivedkey[keylength:(keylength * 2)]
|
||||
iv = derivedkey[(keylength * 2):(keylength * 2) + ivlength]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue