From 297fd814528bb1a8c570174a9bac0f2d7dd69351 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 18 Apr 2022 12:25:31 +0200 Subject: openvpn: T4351: bugfix of initial value on Jinja2 namespace Commit f2b722a8 ("openvpn: T4353: T4351: fix generation of openvpn-option string passed to daemon") changed how the openvpn-option CLI node is processed. Unfortunantely the initial value of the namespace must be '' instead of 0. --- data/templates/openvpn/service-override.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/templates/openvpn/service-override.conf.j2') diff --git a/data/templates/openvpn/service-override.conf.j2 b/data/templates/openvpn/service-override.conf.j2 index d7551eb92..616ba3bfc 100644 --- a/data/templates/openvpn/service-override.conf.j2 +++ b/data/templates/openvpn/service-override.conf.j2 @@ -1,4 +1,4 @@ -{% set options = namespace(value=0) %} +{% set options = namespace(value='') %} {% if openvpn_option is vyos_defined %} {% for option in openvpn_option %} {# Remove the '--' prefix from variable if it is presented #} -- cgit v1.2.3