diff mod_adhoc_cmd_modules/mod_adhoc_cmd_modules.lua @ 250:67f03b7786af

mod_adhoc: Fix dataform creation mod_adhoc_cmd_admin, mod_adhoc_cmd_modules: adapt to work with fixed mod_adhoc
author Florian Zeitz <florob@babelmonkeys.de>
date Wed, 01 Sep 2010 22:42:58 +0200
parents 665552d75ee2
children
line wrap: on
line diff
--- a/mod_adhoc_cmd_modules/mod_adhoc_cmd_modules.lua	Sat Aug 28 22:19:54 2010 +0400
+++ b/mod_adhoc_cmd_modules/mod_adhoc_cmd_modules.lua	Wed Sep 01 22:42:58 2010 +0200
@@ -25,7 +25,7 @@
 
 	local modules = array.collect(keys(hosts[data.to].modules)):sort():concat("\n");
 
-	return { status = "completed", result = { layout = result; data = { modules = modules } } };
+	return { status = "completed", result = { layout = result; values = { modules = modules } } };
 end
 
 function load_module_handler(self, data, state)
@@ -90,7 +90,7 @@
 		end
 	else
 		local modules = array.collect(keys(hosts[data.to].modules)):sort();
-		return { status = "executing", form = { layout = layout; data = { module = modules } } }, "executing";
+		return { status = "executing", form = { layout = layout; values = { module = modules } } }, "executing";
 	end
 end
 
@@ -122,7 +122,7 @@
 		end
 	else
 		local modules = array.collect(keys(hosts[data.to].modules)):sort();
-		return { status = "executing", form = { layout = layout; data = { module = modules } } }, "executing";
+		return { status = "executing", form = { layout = layout; values = { module = modules } } }, "executing";
 	end
 end