summaryrefslogtreecommitdiffhomepage
path: root/libs/uci/luasrc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/uci/luasrc')
-rw-r--r--libs/uci/luasrc/model/uci.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/uci/luasrc/model/uci.lua b/libs/uci/luasrc/model/uci.lua
index c927b4ca5..66bd0a026 100644
--- a/libs/uci/luasrc/model/uci.lua
+++ b/libs/uci/luasrc/model/uci.lua
@@ -58,7 +58,10 @@ function cursor_state()
end
-local Cursor = getmetatable(cursor())
+inst = cursor()
+inst_state = cursor_state()
+
+local Cursor = getmetatable(inst)
--- Applies UCI configuration changes
-- @param configlist List of UCI configurations