summaryrefslogtreecommitdiffstats
path: root/acf2/persistence/backends/augeas.lua
diff options
context:
space:
mode:
Diffstat (limited to 'acf2/persistence/backends/augeas.lua')
-rw-r--r--acf2/persistence/backends/augeas.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/acf2/persistence/backends/augeas.lua b/acf2/persistence/backends/augeas.lua
index c24ec6f..b37aa25 100644
--- a/acf2/persistence/backends/augeas.lua
+++ b/acf2/persistence/backends/augeas.lua
@@ -131,7 +131,9 @@ function backend:set(mods)
end
if type(value) == 'table' then value = nil end
- if not delete or mvpath then self.aug:set(apath, tostr(value)) end
+ if not delete or mvpath then
+ self.aug:set(apath, not delete and tostr(value) or nil)
+ end
if delete or value == '' then gcpaths[mpath] = true end
end