mod_rest: Fix iteration over disco#info identities
authorKim Alvefur <zash@zash.se>
Sat, 25 Jan 2020 00:17:44 +0100
changeset 3852 1b9834500123
parent 3851 ffc64d285a96
child 3853 11c34e97fe1a
mod_rest: Fix iteration over disco#info identities
mod_rest/jsonmap.lib.lua
--- 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