diff options
Diffstat (limited to 'acf2/persistence/backends/augeas.lua')
-rw-r--r-- | acf2/persistence/backends/augeas.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/acf2/persistence/backends/augeas.lua b/acf2/persistence/backends/augeas.lua index 7078fe9..c24ec6f 100644 --- a/acf2/persistence/backends/augeas.lua +++ b/acf2/persistence/backends/augeas.lua @@ -5,6 +5,7 @@ See LICENSE file for license details local topology = require('acf2.model.root').topology local pth = require('acf2.path') +local tostr = require('acf2.persistence.util').tostring local util = require('acf2.util') local copy = util.copy @@ -130,7 +131,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) end + if not delete or mvpath then self.aug:set(apath, tostr(value)) end if delete or value == '' then gcpaths[mpath] = true end end |