summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-21 17:38:39 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-21 17:38:39 +0200
commit207b7390003c98df25c31dfad8c42b09accc0b39 (patch)
tree84d7956351a2e6b47224992f5b8aaffc101d8d7d /src
parentf7bb2d00bcaf2354fe944f8e7ab3bad848c3f258 (diff)
downloadvyos-1x-207b7390003c98df25c31dfad8c42b09accc0b39.tar.gz
vyos-1x-207b7390003c98df25c31dfad8c42b09accc0b39.zip
pppoe-server: T2314: pass proper content variable to render()
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/service_pppoe-server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/service_pppoe-server.py b/src/conf_mode/service_pppoe-server.py
index f0dd3751a..94eb675f7 100755
--- a/src/conf_mode/service_pppoe-server.py
+++ b/src/conf_mode/service_pppoe-server.py
@@ -423,10 +423,10 @@ def generate(pppoe):
if not os.path.exists(dirname):
os.mkdir(dirname)
- render(pppoe_conf, 'accel-ppp/pppoe.config.tmpl', c, trim_blocks=True)
+ render(pppoe_conf, 'accel-ppp/pppoe.config.tmpl', pppoe, trim_blocks=True)
if pppoe['local_users']:
- render(pppoe_chap_secrets, 'accel-ppp/chap-secrets.tmpl', c, trim_blocks=True)
+ render(pppoe_chap_secrets, 'accel-ppp/chap-secrets.tmpl', pppoe, trim_blocks=True)
os.chmod(pppoe_chap_secrets, S_IRUSR | S_IWUSR | S_IRGRP)
else:
if os.path.exists(pppoe_chap_secrets):