Skip to content

Commit

Permalink
Bugfix custom jinja env (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
indy-independence authored Dec 11, 2020
1 parent 767b0b4 commit 4b2a1ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nornir_jinja2/plugins/tasks/template_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def template_file(

if jinja_env:
env = jinja_env
env.loader = FileSystemLoader(path)
else:
env = Environment(
loader=FileSystemLoader(path), undefined=StrictUndefined, trim_blocks=True,
Expand Down

0 comments on commit 4b2a1ed

Please sign in to comment.