diff options
author | Zuul <zuul@review.opendev.org> | 2021-03-31 18:41:42 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2021-03-31 18:41:42 +0000 |
commit | e215f7a18037794c56d1473b22e95e80df8e54fb (patch) | |
tree | f48f2e9d2b1e5f249713a8d1e0dbe56d520352c5 | |
parent | a7988cb416970cd2e7c7ee430f13502aa8a40bb9 (diff) | |
parent | 4afbf7479829a464728555cda077979c0a7efb2b (diff) | |
download | ironic-e215f7a18037794c56d1473b22e95e80df8e54fb.tar.gz |
Merge "Fix Bandit check"
-rw-r--r-- | ironic/common/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ironic/common/utils.py b/ironic/common/utils.py index 390fe0305..a25753106 100644 --- a/ironic/common/utils.py +++ b/ironic/common/utils.py @@ -488,9 +488,9 @@ def render_template(template, params, is_file=True, strict=False): # and still complains with B701 for that line # NOTE(pas-ha) not using default_for_string=False as we set the name # of the template above for strings too. - env = jinja2.Environment( + env = jinja2.Environment( # nosec B701 loader=loader, - autoescape=jinja2.select_autoescape(), # nosec B701 + autoescape=jinja2.select_autoescape(), undefined=jinja2.StrictUndefined if strict else jinja2.Undefined ) tmpl = env.get_template(tmpl_name) |