# HG changeset patch # User Kim Alvefur # Date 1579908000 -3600 # Node ID 8d13b9c9ba7512b703b4bb08ac4472bac80c476d # Parent 11c34e97fe1a6753259475a3fa51dc1424e0fd79 mod_rest: Fix disco#info identities data mapping It should now handle the same format it produces. diff -r 11c34e97fe1a -r 8d13b9c9ba75 mod_rest/jsonmap.lib.lua --- a/mod_rest/jsonmap.lib.lua Sat Jan 25 00:19:11 2020 +0100 +++ b/mod_rest/jsonmap.lib.lua Sat Jan 25 00:20:00 2020 +0100 @@ -61,7 +61,7 @@ disco.attr.node = tostring(s.node); if s.identities then for _, identity in ipairs(s.identities) do - disco:tag("identity", { category = identity[1], type = identity[2] }):up(); + disco:tag("identity", { category = identity.category, type = identity.type, name = identity.name }):up(); end end if s.features then