mod_rest: Fix disco#info identities data mapping
It should now handle the same format it produces.
--- 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