diff options
Diffstat (limited to 'aconf/model/field.lua')
-rw-r--r-- | aconf/model/field.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/aconf/model/field.lua b/aconf/model/field.lua index f5382c4..6e4607f 100644 --- a/aconf/model/field.lua +++ b/aconf/model/field.lua @@ -158,7 +158,12 @@ end function M.Field:topology(context) return { - {path=context.path, addr=context.addr, type=self.dtype} + { + path=context.path, + addr=context.addr, + be_mode=self.be_mode, + type=self.dtype + } } end @@ -332,6 +337,7 @@ end function M.TreeNode:topology(context) local res = super(self, M.TreeNode):topology(context) + res[1].subtype = res[1].type res[1].type = 'table' util.extend(res, node.topology(self:load(context, {create=true}))) return res |