luci-base: fix passing dispatched node details to templates
authorJo-Philipp Wich <jo@mein.io>
Tue, 22 Nov 2022 16:30:37 +0000 (17:30 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 22 Nov 2022 16:31:37 +0000 (17:31 +0100)
Fixes: #6111
Fixes: 08ae8d40a9 ("luci-base, luci-lua-runtime: fix "dispatched" and "requested" properties")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/ucode/template/header.ut

index fb61da514691c5d0f15a2292871dc80a8cc9493e..e87560010fd9c5fe9c307f35779af57855cfa41a 100644 (file)
@@ -22,7 +22,7 @@
                ubuspath       : config.main.ubuspath || '/ubus/',
                sessionid      : ctx.authsession,
                token          : ctx.authtoken,
-               nodespec       : node,
+               nodespec       : dispatched,
                apply_rollback : max(+config.apply.rollback ||  90, 90),
                apply_holdoff  : max(+config.apply.holdoff  ||   4,  1),
                apply_timeout  : max(+config.apply.timeout  ||   5,  1),