summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--acf2/persistence/backends/augeas.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/acf2/persistence/backends/augeas.lua b/acf2/persistence/backends/augeas.lua
index 010a52b..620a393 100644
--- a/acf2/persistence/backends/augeas.lua
+++ b/acf2/persistence/backends/augeas.lua
@@ -128,8 +128,7 @@ function backend:set(mods)
end
if type(value) == 'table' then value = nil end
- if not delete or mvpath then self.aug:set(apath, value)
- elseif apath > '/' then apath = pth.parent(apath) end
+ if not delete or mvpath then self.aug:set(apath, value) end
if delete or value == '' then gcpaths[mpath] = true end
end