summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--acf/persistence/backends/augeas.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/acf/persistence/backends/augeas.lua b/acf/persistence/backends/augeas.lua
index 9d6b4cc..d80f806 100644
--- a/acf/persistence/backends/augeas.lua
+++ b/acf/persistence/backends/augeas.lua
@@ -55,7 +55,7 @@ end
function backend:get(path, top)
local tpe = top and top.type
local leaf = tpe and tpe ~= 'table'
- local apath, mvpath = self:find(path, leaf)
+ local apath, mvpath = self:find(path, leaf or not tpe)
local matches = self.aug:match(apath)
if mvpath then