diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-05-01 19:13:45 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-05-01 19:13:45 +0200 |
commit | eafe13ace604a3381a41d07c1d49c495680bf3d7 (patch) | |
tree | ffbbdcca419a070f9bbd04a95a32cc4080e9d64a /src/conf_mode/service_webproxy.py | |
parent | e0f1e495b81c8b214a8e12678bf5c643b36567dd (diff) | |
download | vyos-1x-eafe13ace604a3381a41d07c1d49c495680bf3d7.tar.gz vyos-1x-eafe13ace604a3381a41d07c1d49c495680bf3d7.zip |
webproxy: T4353: fix Jinja2 linting errors
Diffstat (limited to 'src/conf_mode/service_webproxy.py')
-rwxr-xr-x | src/conf_mode/service_webproxy.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/service_webproxy.py b/src/conf_mode/service_webproxy.py index a16cc4aeb..32af31bde 100755 --- a/src/conf_mode/service_webproxy.py +++ b/src/conf_mode/service_webproxy.py @@ -61,7 +61,7 @@ def generate_sg_localdb(category, list_type, role, proxy): user=user_group, group=user_group) # temporary config file, deleted after generation - render(sg_tmp_file, 'squid/sg_acl.conf.tmpl', tmp, + render(sg_tmp_file, 'squid/sg_acl.conf.j2', tmp, user=user_group, group=user_group) call(f'su - {user_group} -c "squidGuard -d -c {sg_tmp_file} -C {db_file}"') @@ -166,8 +166,8 @@ def generate(proxy): if not proxy: return None - render(squid_config_file, 'squid/squid.conf.tmpl', proxy) - render(squidguard_config_file, 'squid/squidGuard.conf.tmpl', proxy) + render(squid_config_file, 'squid/squid.conf.j2', proxy) + render(squidguard_config_file, 'squid/squidGuard.conf.j2', proxy) cat_dict = { 'local-block' : 'domains', |