luci-app-openvpn: fix template based config creation
authorDirk Brenken <dev@brenken.org>
Fri, 14 Sep 2018 06:57:06 +0000 (08:57 +0200)
committerDirk Brenken <dev@brenken.org>
Thu, 11 Oct 2018 11:40:58 +0000 (13:40 +0200)
* minimal fix to bring back openvpn config creation based on
openvpn_recipes template, fix for #2146

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 1eb3f734c7f4830022f99e304d38156c2520c676)

applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua

index a6b0e1dd902f0c953483326dcc5a4e02a194762c..93a901e9b8f04fe2093c74881cc360bbf3b54546 100644 (file)
@@ -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")