summaryrefslogtreecommitdiff
path: root/src/conf_mode/system-login.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-05-01 19:18:53 +0200
committerChristian Poessinger <christian@poessinger.com>2022-05-01 19:18:53 +0200
commit3f657383cdd96b984c594bb8323a714d7a692f11 (patch)
tree0cdba8dcaef38434eed25278d02c65e3e6ac4408 /src/conf_mode/system-login.py
parent7c71e956e8e1779acd82b130ea149ec761520953 (diff)
downloadvyos-1x-3f657383cdd96b984c594bb8323a714d7a692f11.tar.gz
vyos-1x-3f657383cdd96b984c594bb8323a714d7a692f11.zip
login: T4353: fix Jinja2 linting errors
Diffstat (limited to 'src/conf_mode/system-login.py')
-rwxr-xr-xsrc/conf_mode/system-login.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/system-login.py b/src/conf_mode/system-login.py
index c9c6aa187..c717286ae 100755
--- a/src/conf_mode/system-login.py
+++ b/src/conf_mode/system-login.py
@@ -197,7 +197,7 @@ def generate(login):
pass
if 'radius' in login:
- render(radius_config_file, 'login/pam_radius_auth.conf.tmpl', login,
+ render(radius_config_file, 'login/pam_radius_auth.conf.j2', login,
permission=0o600, user='root', group='root')
else:
if os.path.isfile(radius_config_file):
@@ -241,7 +241,7 @@ def apply(login):
#
# XXX: Should we deny using root at all?
home_dir = getpwnam(user).pw_dir
- render(f'{home_dir}/.ssh/authorized_keys', 'login/authorized_keys.tmpl',
+ render(f'{home_dir}/.ssh/authorized_keys', 'login/authorized_keys.j2',
user_config, permission=0o600,
formater=lambda _: _.replace("&quot;", '"'),
user=user, group='users')