'do' is useful to avoid hacks like {% set _ = x.update(...) %}.
Instead: {% do x.update(...) %}.
[1] http://jinja.pocoo.org/docs/2.10/extensions/
Change-Id: I886beb97e0383ba11b81aa21cf12b11ebc4b05b2
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
PARSER.add_argument("--jinja2", "-j", type=str, required=True)
ARGS = PARSER.parse_args()
-ENV = Environment(loader=FileSystemLoader(os.path.dirname(ARGS.jinja2)))
+ENV = Environment(
+ loader=FileSystemLoader(os.path.dirname(ARGS.jinja2)),
+ extensions=['jinja2.ext.do']
+)
gen_config_lib.load_custom_filters(ENV)
# Run `eyaml decrypt` on the whole file, but only if PDF data is encrypted