From: Dirk Brenken Date: Fri, 14 Sep 2018 06:57:06 +0000 (+0200) Subject: luci-app-openvpn: fix template based config creation X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1eb3f734c7f4830022f99e304d38156c2520c676;p=project%2Fluci.git luci-app-openvpn: fix template based config creation * minimal fix to bring back openvpn config creation based on openvpn_recipes template, fix for #2146 Signed-off-by: Dirk Brenken --- diff --git a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua index a6b0e1dd90..93a901e9b8 100644 --- a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua +++ b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua @@ -59,7 +59,7 @@ function s.create(self, name) if #name > 3 and not name:match("[^a-zA-Z0-9_]") then uci:section( "openvpn", "openvpn", name, - uci:get_all( "openvpn_recipes", recipe ) + { uci:get_all( "openvpn_recipes", recipe ) } ) uci:delete("openvpn", name, "_role")