Diff

mod_rest/jsonmap.lib.lua @ 3848:1b9834500123

mod_rest: Fix iteration over disco#info identities
author Kim Alvefur <zash@zash.se>
date Sat, 25 Jan 2020 00:17:44 +0100
parent 3823:31b1797a78e1
child 3849:11c34e97fe1a
line wrap: on
line diff
--- a/mod_rest/jsonmap.lib.lua	Sun Jan 19 19:31:43 2020 +0100
+++ b/mod_rest/jsonmap.lib.lua	Sat Jan 25 00:17:44 2020 +0100
@@ -60,7 +60,7 @@
 			if type(s) == "table" then
 				disco.attr.node = tostring(s.node);
 				if s.identities then
-					for identity in ipairs(s.identities) do
+					for _, identity in ipairs(s.identities) do
 						disco:tag("identity", { category = identity[1], type = identity[2] }):up();
 					end
 				end